Skip to content

Instantly share code, notes, and snippets.

@passcod
passcod / eep.html
Created June 19, 2012 09:19
Akiwiguy's thingie. But with slightly better CSS. Meh. Who am I kidding.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script>
$(function(){
$("button").click(function(){
$('body').toggleClass('expanded');
@passcod
passcod / uoareqs.gv
Created June 25, 2012 06:51
UoA reqs graph
digraph uoareqs {
/* CompSci */
CS101 -> CS105;
CS101 -> CS210;
CS101 -> CS220;
CS101 -> CS225;
CS101 -> CS230;
CS101 -> CS280;
@passcod
passcod / graph.gv
Created June 27, 2012 23:21
pippo - Exploring meta structures
digraph pippo {
Node1 -> Relation1;
Relation1 -> Node2;
Relation1 [shape=square];
Relation1 [color=blue];
MetaNode1 -> MetaNode2 [color=grey];
MetaNode2 -> Node1 [color=grey];
MetaNode1 -> Node2 [color=grey];
MetaNode3 -> Relation1 [color=grey];
@passcod
passcod / autreqs.gv
Created June 28, 2012 03:49
AUT reqs for BSc/BMathSc by level: yellow=5, green=6, blue=7, purple=postgrad
digraph autbsc {
715202 [color=yellow];
715204 [color=yellow];
715189 [color=yellow];
715186 [color=yellow];
715187 [color=yellow];
735320 [color=yellow];
735318 [color=yellow];
555301 [color=yellow];
715700 [color=yellow];
@passcod
passcod / gist:3170138
Created July 24, 2012 14:14
The 80/20 Rule
I've been saying that to friends, family, and colleagues for a while now, and I think maybe I should just write it down and refer to it instead of rehashing it every time. In the last few dozen explanations, it hasn't actually changed, so I think it's pretty stable. Of course, the community will have something to say, and that's expected!

There are more or less seven states to a new (software) project:

  1. Figment. That's when it's just an idea, and maybe you've written something down on a paper napkin, or discussed it over coffee with a friend.
  2. Planning. You're actually putting more thought into it, doing the initial research, hopefully consolidating the idea into something manageable.
  3. Prototype. Not necessarily code. Sometimes a prototype can just be rectangles of paper under magnets on a whiteboard, and a few arrows here and there to represent dynamics. Also known (in the case of code) as pre-alpha.
  4. Alpha. Finally! Code. You've probably pulled a directory structure o
@passcod
passcod / Manifest
Created July 24, 2012 20:01
Remoded userscript to remove the google redirects
domain /google.[a-z]+/
load 'zapem.js'
@passcod
passcod / gist:3234448
Created August 2, 2012 06:21
The public domain tri-license

Sometimes, for small pieces of code, I use a special license header that goes like this:

/* Released as public domain, or licensed under
 * either CC0 or the MIT/X11, whichever gives
 * you the most rights in your legislation.
 */

Now, there's a few things in here:

@passcod
passcod / timers-concat.json
Created August 10, 2012 06:37 — forked from anonymous/various-timers-%2B-concat.json
meemoo app: experiments
{
"info": {
"title": "experiments",
"author": "forresto",
"description": "",
"url": "various-timers-%2B-concat",
"parents": [
"https://gist.github.com/3311840"
]
},
@passcod
passcod / gist:3329772
Created August 12, 2012 04:40
Relay World - Log

Session I – 12 Aug

Day 0

Cave entrance the nearest to spawn Spawn is in the direction I'm looking, out a dozen meters.

I log in, respawn, and find myself among trees. It's night. There's an entrance and I duck in for the night.