Skip to content

Instantly share code, notes, and snippets.

@sarahjean
sarahjean / planck-training-wheels.kbd.json
Created April 21, 2018 15:49 — forked from pkobayashi/layout.kbd.json
planck training wheels
[
{
"name": "planck training wheels"
},
[
{
"c": "#95928d",
"t": "#000000\n\n#f57f29\n#83b8d7",
"p": "OEM R3",
"sm": "cherry"
@sarahjean
sarahjean / jitai.user.js
Created September 28, 2017 22:21 — forked from obskyr/jitai.user.js
Jitai (字体): A fairly full-featured font randomizer for WaniKani.
// ==UserScript==
// @name Jitai
// @version 1.3.0
// @description Display WaniKani reviews in randomized fonts, for more varied reading training.
// @author Samuel (@obskyr)
// @namespace http://obskyr.io/
// @homepageURL https://gist.github.com/obskyr/9f3c77cf6bf663792c6e
// @icon http://i.imgur.com/qyuR9bD.png
// @include /^https?://(www\.)?wanikani\.com/review/session/?$/
// @grant none
@sarahjean
sarahjean / rainbow-border.css
Created July 20, 2016 17:09 — forked from charliepark/rainbow-border.css
CSS animations to give a div a rainbow border, perpetually changing color
@-webkit-keyframes rainbow {
0% {border-color: hsl(0, 100%, 50%);}
100% {border-color: hsl(255, 100%, 50%);}
}
.rainbow_border{
border: 4px solid hsl(0, 100%, 50%);
-webkit-animation: rainbow 5s infinite alternate;
}
@sarahjean
sarahjean / gulpfile.js
Last active November 12, 2015 16:11 — forked from edouard-lopez/gulpfile.js
Gulp copy font-awesome files to dist/ directory
'use strict';
// Generated on 2014-04-14 using generator-leaflet 0.0.14
var gulp = require('gulp');
var open = require('open');
var wiredep = require('wiredep').stream;
// Load plugins
var $ = require('gulp-load-plugins')();

"A beginning programmer writes her programs like an ant builds her hill, one piece at a time, without thought for the bigger structure. Her programs will be like loose sand. They may stand for a while, but growing too big they fall apart.

Realizing this problem, the programmer will start to spend a lot of time thinking about structure. Her programs will be rigidly structured, like rock sculptures. They are solid, but when they must change, violence must be done to them.

The master programmer knows when to apply structure and when to leave things in their simple form. Her programs are like clay, solid yet malleable."

-- Master Yuan-Ma, The Book of Programming

@sarahjean
sarahjean / Gulpfile.js
Last active August 29, 2015 14:23 — forked from labbydev/Gulpfile.js
var gulp = require('gulp');
var paths = require('compass-options').dirs();
var compass = require('gulp-compass');
var prefix = require('gulp-autoprefixer');
var changed = require('gulp-changed');
var imagemin = require('gulp-imagemin');
var browserSync = require('browser-sync');
var cp = require('child_process');
var scsslint = require('gulp-scss-lint');
var cssmin = require('gulp-cssmin');
var gulp = require('gulp');
var psi = require('psi');
var ngrok = require('ngrok');
var sequence = require('run-sequence');
// note server must already be running on port to be able to
// run this example perfectly
var PORT = 8000;
var site = '';
#!/bin/sh
#
# This script will hold your hand during the process of converting an existing Drupal 7 file field from public to private.
#
# http://twitter.com/thsutton
# http://www.linkedin.com/pub/thomas-sutton/55/391/350
# http://thomas-sutton.id.au/
set -eu
@sarahjean
sarahjean / devtools-snippet
Created October 24, 2013 21:46
DevTools snippet to find css files with certain names in them, in this case generated by the css_injector drupal module
var links = new Array();
var path_chunk = 'css_injector';
$("link").each(function() {
var css = $(this);
if (css.attr("href").indexOf(path_chunk) >= 0) {
links.push(css.attr("href"));
}
});
console.log(links);
@mixin inline-block {
display: inline-block;
vertical-align: baseline;
zoom: 1;
*display: inline;
*vertical-align: auto;
}
// placeholder: