Skip to content

Instantly share code, notes, and snippets.

Avatar
🥝
Félix with an é

Félix Saparelli passcod

🥝
Félix with an é
View GitHub Profile
@passcod
passcod / post.md
Created Aug 22, 2012
Pikachu, the blue-but-not-quite open-source version
View post.md

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 Aug 22, 2012
What you really need to know to hack on the web
View graph.gv
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 Aug 22, 2012
What you need to know to hack on the web
View graph.gv
graph hackwebtech {
HTML;
Javascript;
Some_Server_Side_Language;
}
View videos.json
[
{
"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 Sep 20, 2012
Padrino + Sidekiq =
View Gemfile
# ...
gem 'sidekiq'
# ...
@passcod
passcod / gist:3793320
Created Sep 27, 2012
Sample onthesides job
View gist:3793320
# 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...
View gist:3890678
#!/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 Oct 16, 2012
Port of @LeaVerou's prism.js Dark theme for CodeMirror
View codemirror-theme.css
@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 Oct 18, 2012
New way to center stuff...
View dabblet.css
/**
* New way to center stuff...
*/
b or not.ody, html {
text-align: center;
height: 100%;
}
i {