Skip to content

Instantly share code, notes, and snippets.

@passcod
passcod / gist:3390855
Created August 19, 2012 01:44
NotAlwaysRight.com stories about people not reading
@passcod
passcod / post.md
Created August 22, 2012 01:03
Pikachu, the blue-but-not-quite open-source version

The title: when I heard "charging" I immediately thought of Pokemon. Ha. Dork.

If (when, let's be hopeful) I release software, well, if I have a choice in the matter it will be open-source, and it will have been MIT-grade open-source since the beginning. But:

  • If it's a web service, I will host an "official" server which will have a free limited plan, and some kind of charging scheme beyond that.
@passcod
passcod / graph.gv
Created August 22, 2012 10:08
What you really need to know to hack on the web
graph hackwebtech {
HTML;
Javascript;
Some_Server_Side_Language;
HTML -- DOM -- Javascript;
HTML4 -- HTML -- HTML5;
HTTP -- XHR -- Javascript;
Javascript -- CSS -- HTML;
Javascript -- CoffeeScript;
@passcod
passcod / graph.gv
Created August 22, 2012 10:08
What you need to know to hack on the web
graph hackwebtech {
HTML;
Javascript;
Some_Server_Side_Language;
}
@passcod
passcod / videos.json
Created August 23, 2012 00:19
AuckLUG videos
[
{
"title": "A little Ruby.",
"date": "7 March 2011",
"source": "https://s3-ap-southeast-1.amazonaws.com/aucklug/2011-03-07-final-raw.<format>"
}, {
"title": "Beginners' Python by Scott Newton.",
"date": "13 June 2011",
"source": "https://s3-ap-southeast-1.amazonaws.com/aucklug/Python-introduction-full.<format>"
}, {
@passcod
passcod / Gemfile
Created September 20, 2012 05:15
Padrino + Sidekiq = ♥
# ...
gem 'sidekiq'
# ...
@passcod
passcod / gist:3793320
Created September 27, 2012 10:20
Sample onthesides job
# Fetch a list of words to search
# for on Twitter, and return the
# last ~10 people who used each.
# There's a bunch of libraries you
# can use. E.g. typhoeus for HTTP.
url = "https://raw.github.com/gist/123456"
watch = Typhoeus::Request.get url
# YAML, JSON, Nokogiri for XML, Base64...
#!/bin/bash
if ! `command -v hub >/dev/null 2>&1`
then
echo "Missing dependency: hub."
echo "Install it with \`brew install hub\`."
exit 1
fi
if ! `command -v ruby >/dev/null 2>&1`
@passcod
passcod / codemirror-theme.css
Created October 16, 2012 04:08
Port of @LeaVerou's prism.js Dark theme for CodeMirror
@charset "UTF-8";
/**
* prism.js Dark theme for JavaScript, CSS and HTML
* Based on the slides of the talk “/Reg(exp){2}lained/”
* @author Lea Verou
*
* Adapted for CodeMirror
* @author Félix Saparelli
*/
@passcod
passcod / dabblet.css
Created October 18, 2012 08:09
New way to center stuff...
/**
* New way to center stuff...
*/
b or not.ody, html {
text-align: center;
height: 100%;
}
i {