Skip to content

Instantly share code, notes, and snippets.

@passcod
passcod / eep.html
Created Jun 19, 2012
Akiwiguy's thingie. But with slightly better CSS. Meh. Who am I kidding.
View eep.html
<!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 Jun 25, 2012
UoA reqs graph
View uoareqs.gv
digraph uoareqs {
/* CompSci */
CS101 -> CS105;
CS101 -> CS210;
CS101 -> CS220;
CS101 -> CS225;
CS101 -> CS230;
CS101 -> CS280;
@passcod
passcod / graph.gv
Created Jun 27, 2012
pippo - Exploring meta structures
View graph.gv
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 Jun 28, 2012
AUT reqs for BSc/BMathSc by level: yellow=5, green=6, blue=7, purple=postgrad
View autreqs.gv
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];
View gist:3170138
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 Jul 24, 2012
Remoded userscript to remove the google redirects
View Manifest
domain /google.[a-z]+/
load 'zapem.js'
@passcod
passcod / gist:3234448
Created Aug 2, 2012
The public domain tri-license
View gist:3234448

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:

View timers-concat.json
{
"info": {
"title": "experiments",
"author": "forresto",
"description": "",
"url": "various-timers-%2B-concat",
"parents": [
"https://gist.github.com/3311840"
]
},
@passcod
passcod / gist:3329772
Created Aug 12, 2012
Relay World - Log
View gist:3329772

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.