This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// GFFParallaxNode.h | |
// | |
// Created by Rolando Abarca on 12/14/09. | |
// | |
#import <Foundation/Foundation.h> | |
#import "cocos2d.h" | |
#define MAX_PARALLAX_CHILDREN 25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! strict | |
!!! | |
%h1.header HI! | |
%table | |
- @images.each do |i| | |
%tr | |
%td | |
%img{ :src => "#{i.path}" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get '/rugs/?' do | |
@images = Image.all | |
haml(:home) | |
end | |
get '/rugs/:id' do | |
@image = Image.get(params[:id]) | |
haml :show | |
end | |
----------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Controller | |
class GuestsController < ApplicationController | |
def create | |
@guest = Guest.new(params[:guest]) | |
if @guest.save | |
redirect_to :action => 'index' | |
else | |
render :action => 'new' | |
end |