Skip to content

Instantly share code, notes, and snippets.

@jarodl
jarodl / GFFParallaxNode.h
Created November 3, 2011 22:54 — forked from rolandoam/GFFParallaxNode.h
GFFParallaxNode
//
// GFFParallaxNode.h
//
// Created by Rolando Abarca on 12/14/09.
//
#import <Foundation/Foundation.h>
#import "cocos2d.h"
#define MAX_PARALLAX_CHILDREN 25
= Ruby Packaging Standard
The aim of this document is to specify a common structure of how a
Ruby package distributed as source (that is, but not limited to,
development directories, version-controlled repositories, .tar.gz,
Gems, ...) should conform to.
(See RFC 2119 for use of MUST, SHOULD, SHALL.)
== Library files
# Hey coops..
#
# Imagine yourself on the other side of the table: two job openings, hundreds of resumes,
# _all of which_ look friggin' identical. Yeah, the HR departments at your MegaCorp XYZ are using
# automated tools to scan for keywords, and the coop department at your school is trying to beat
# you into submission to follow some "predefined template".. But, unless what you're aspiring to
# is to be an automaton at MegaCorp XYZ, relegated to writing test harnesses for code that will
# never see the light of day.. please do yourself a favor, and _be different_! Be bold, dammit.
#
# (Frankly, I'm falling asleep while reading your resumes.. Wake me up! Srsly.)
"""
Simple forking echo server built with Python's SocketServer library. A more
Pythonic version of http://gist.github.com/203520, which itself was inspired
by http://tomayko.com/writings/unicorn-is-unix.
"""
import os
import SocketServer
class EchoHandler(SocketServer.StreamRequestHandler):
@jarodl
jarodl / vimrc
Created November 3, 2009 23:01 — forked from acoffman/vimrc
set nocompatible
" have command-line completion <Tab> (for filenames, help topics, option names)
" first list the available options and complete the longest common part, then
" have further <Tab>s cycle through the possibilities:
set wildmode=list:longest,full
" display the current mode and partially-typed commands in the status line:
set showmode
set showcmd
!!! strict
!!!
%h1.header HI!
%table
- @images.each do |i|
%tr
%td
%img{ :src => "#{i.path}" }
get '/rugs/?' do
@images = Image.all
haml(:home)
end
get '/rugs/:id' do
@image = Image.get(params[:id])
haml :show
end
-----------------------
#!/usr/bin/python
# Program to convert a number into the format
# hh mm ss.sssss
# Input format: ./converter.py DEC RA
import math
import sys
import string
def to_dec(inp):
# Controller
class GuestsController < ApplicationController
def create
@guest = Guest.new(params[:guest])
if @guest.save
redirect_to :action => 'index'
else
render :action => 'new'
end