This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import base64, re, argparse | |
parser = argparse.ArgumentParser(description='CSS-Embed PNG images as data-URIs') | |
parser.add_argument('files', metavar='file', nargs="+", type=str, | |
help='path to a css file') | |
img = re.compile("url\('?\"?(.*\.png)'?\"?\)") | |
repl = "url(data:image/png;base64,%s)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# /usr/local/bin/idea | |
export IDEA_JDK=/opt/java # Oracle JDK! | |
screen -dmS idea <idea_dir>/bin/idea.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bind G "+chatwheel; chat0" | |
alias chat0 "chat_wheel_phrase_0 50;chat_wheel_phrase_1 2;chat_wheel_phrase_2 7;chat_wheel_phrase_3 6;chat_wheel_phrase_4 44;chat_wheel_phrase_5 21;chat_wheel_phrase_6 78;chat_wheel_phrase_7 32;" | |
bind H "+chatwheel; chat1" | |
alias chat1 "chat_wheel_phrase_0 66;chat_wheel_phrase_1 69;chat_wheel_phrase_2 65;chat_wheel_phrase_3 70;chat_wheel_phrase_4 68;chat_wheel_phrase_5 62;chat_wheel_phrase_6 60;chat_wheel_phrase_7 85;" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@charset "utf-8"; | |
// Grids, loosely based on Flexbox grid: | |
// https://github.com/kristoferjoseph/flexboxgrid | |
// extend to use flexbox | |
%row { | |
box-sizing: border-box; | |
display: -webkit-box; | |
display: -webkit-flex; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Kopiera och klistra in i Firebug eller Dev Tools, ändra sista raden. */ | |
(function (str) { | |
"use strict"; | |
var blacklist = ' aeiouyöäåAEIOUYÖÄÅ'; | |
function ify(c) { | |
return c + "o" + c.toLowerCase(); | |
} | |
function pirate(str) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function()%7Bvar%20c%2Ca%2Cb%3Bb%3Ddocument.getElementsByTagName(%22link%22)%3Bc%3Dfunction(e)%7Bvar%20d%3D%22__%3D%22%2BMath.random()%3Bif(e.match(%2F%3F%2F))%7Bif(e.match(%2F__%3D%2F))%7Be%3De.replace(%2F__%3D%5Bd.%5D%2B%2F%2Cd)%7Delse%7Be%2B%3D(%22%26%22%2Bd)%7D%7Delse%7Be%2B%3D(%22%3F%22%2Bd)%7Dreturn%20e%7D%3Ba%3Dfunction()%7Bvar%20e%3Db.length%2Cd%3Bwhile(e)%7Be-%3D1%3Bd%3Db%5Be%5D%3Bif(d.rel%3D%3D%3D%22stylesheet%22)%7Bd.href%3Dc(d.href)%7D%7DsetTimeout(function()%7Ba()%7D%2C2222)%7D%3Ba()%7D())%3B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint browser:true */ | |
(function (g) { | |
"use strict"; | |
var EventTarget, | |
sprintf, | |
getWeek; | |
/** | |
* basic sprintf function, %s only | |
* example: sprintf("Hi %s, my name is %s", "John", "Doe"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# npm install jshint | |
ROOT_DIR=$(git rev-parse --show-toplevel) | |
JSLINT="${ROOT_DIR}/node_modules/.bin/jshint" | |
for file in $(git diff --cached --name-only | grep '\.js$'); do | |
line=$(node $JSLINT $file | grep 'errors') | |
if [ x"$line" = x ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# requires node.js: | |
# brew install node | |
# npm install jslint | |
# | |
ROOT_DIR=$(git rev-parse --show-toplevel) | |
JSLINT="${ROOT_DIR}/node_modules/.bin/jslint" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version":"2008-10-17", | |
"Statement":[{ | |
"Sid":"AllowPublicRead", | |
"Effect":"Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action":["s3:GetObject"], | |
"Resource":["arn:aws:s3:::bucket/*" |