Skip to content

Instantly share code, notes, and snippets.

@ruzz311
ruzz311 / turnip-farmer.txt
Last active April 4, 2025 20:49
The story of the turnip farmer. Weird things are written in the middle of a hackathon. (originally ~ June 2013)
"In all my days as a turnip farmer I have not yet experienced the love of a white radish," thought the farmer as he sighed and walked up the dusty, worn trail towards the barn. The paint, which once was vibrant red had dulled to a rusty hue where the paint had not yet freed itself from the siding, leaving chunks of exposed rough wood that he ran his hands along. The man braced his back against the worn but sturdy structure and slowly sank until his knees could take no more and he crumpled against the barn. The sun beat warm against the old man's skin which had thinned as the years raced by him. And in that moment he drifted off to sleep.
...
How long had he been out? One hour? Two? It was not yet dusk but the cicadas had begun to roar.
His eyes fluttered half-open, though only one seemed willing to do the work. There was a sourness in the back of his throat, metallic and dry, and for a moment he thought perhaps he had bitten his tongue in his sleep. He pressed a hand to his chest and let it rest there. Jus
@ruzz311
ruzz311 / Tear Bass Tab.txt
Last active January 4, 2016 05:09
Tear by Red Hot Chili Peppers
Tear - Bass tab
By the Red Hot Chili Peppers
>From the Album "By the Way"
Tabbed by Tim Marti ([email protected])
Intro: Sometimes he plays each note twice, sometimes he plays
it only once, you decide when, it still sounds the same.
G-|---------------|----------|
D-|-------5--5----|-7--7-----|(x7)
@ruzz311
ruzz311 / meetup-ideas.md
Created January 15, 2014 19:11
Some ideas I'd like to see discussed at upfrontkc

Monthly Meetup Topics

  • Flex-box (CSS)
  • ShadowDOM (CSS)
  • Event Emitters (JS)
  • Socket APIs (JS, server-side?)
  • Web-workers (JS)

Workshop Topics / Projects

Workshops should have some seed-code to reduce the time spent figuring out "where/how do I start this?"

@ruzz311
ruzz311 / bass.md
Last active December 31, 2015 15:38
Resources for the song Cocoa Leaves by Grass Animals 2013 release: "Leafings (EP)". https://soundcloud.com/glassanimals/cocoa-hooves

Cocoa Leaves Bass Tab

Glass Animals

Main Hook / Verse

Doubling Guitar - probably playes the intervals the guitar plays allowing the guitar more freedom with the 16th note strumming)

G|--------------
D|--------------
A|--------------
E|--6--8--1--0--
@ruzz311
ruzz311 / package.json
Last active December 29, 2015 01:09
simple proxy in node
{
"name": "cor-request",
"version": "0.0.0",
"description": "",
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "BSD",
@ruzz311
ruzz311 / testflightUploader.sh
Last active December 29, 2015 00:59
A simple bashscript to bulk upload testflight builds
#!/bin/bash
# TESTFLIGHT_UPTOKEN and TESTFLIGHT_TEAMTOEKN are environment variables
# you can replace them directly with your tokens, but a environment is cooler.
NOTES="you can have multi-line notes here
that will upload with all ipa files"
makeCall(){
curl http://testflightapp.com/api/builds.json \
@ruzz311
ruzz311 / clickingbad.js
Last active December 26, 2015 20:39
wheres the fun in a game if you don't cheat?
// http://clickingbad.nullism.com/
var rwmT,
rwmCnt = 1,
rwmLoop = function () {
if (rwmCnt%3 === 0) {
gm.do_sell_click();
rwmCnt = 0;
console.log('selling')
} else {
@ruzz311
ruzz311 / challenge2.js
Created October 26, 2013 17:03
Challenge 2. You should generate users.json from http://www.json-generator.com/
// responds to /users (returns users)
// post to { me: 'name', oldest: oldestId } to /oldest (checks against the oldest)
var http = require('http'),
url = require('url'),
users = require('./users.json'),
options = { port: 8000 },
oldest = users[0];
for (var i in users) {
@ruzz311
ruzz311 / simple-router.js
Last active December 22, 2015 16:09
my favorite router so far
define([
// Application.
'app',
'modules/section'
], function (app, Section) {
var Router = Backbone.Router.extend({
routes : {
'' : 'index',
'*route' : 'allRoutes'
@ruzz311
ruzz311 / fightcode.turretbot.js
Created August 22, 2013 15:01
fightcode.turretbot.js
/**
objectives = ['seek', 'attack', 'evade', 'shit']
**/
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
this.rotate = 180;
this.direction = 1;