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
var ಠ_ಠ = eval, | |
ლ_ಠ益ಠ_ლ = 42, | |
λ = function() {}, | |
oneQuarter = "¼", | |
oneHalf = "½", | |
threeQuarters = "¾"; | |
// ☺ | |
// ¯\_(ツ)_/¯ | |
// ಠ~ಠ |
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
require "rubygems" | |
require 'living-validator' | |
require 'uri' | |
url = ARGV.first | |
files = ARGV.slice(1, 9999) | |
stop_at = files.length | |
i = 1 | |
def colorize(text, color_code) |
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
require "rubygems" | |
require 'net/ftp' | |
require 'stringio' | |
ftp = "" | |
username = "" | |
passwd = "" | |
root_dir = "../../../../" | |
current_rev_file = root_dir + "__CURRENT_VERSION__" |
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
/*csslint box-model: false, box-sizing: false, universal-selector: false */ | |
/* | |
All projects | |
should have nice | |
ASCII ART! | |
http://patorjk.com/software/taag/ |
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 | |
# | |
# usage: ./adp-new-vhost <name> | |
# | |
mampdir=/Applications/MAMP | |
confdir=$mampdir/conf/apache/extra/vhosts | |
codedir=~/Code | |
mampport=80 | |
cat <<end > $confdir/$1.conf |
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
/* 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"); |