Skip to content

Instantly share code, notes, and snippets.

3895632851688093470124321399185288673785104338880489454510094680143832742780232993592652353526759507837913944048132560715682896385439700839935736927005853497419628059070273477077833408210109288440218443978280196306375193167240847241653042033830597425357268645710283825277085716445523977114160592244871471006330067234117440206253083098203767171454115296192210233248688455689149455444945256422907295283299785269400223369248136560338259146755569662387123901353224506294632229623221073330479959513949567157326184879693623339060823254845845165736371659954580392275369966393384754998875657359670782774225819487277583354675621000790169091315607971032869712540513186767298749679311232202146114059484235248064204036947331672327479671390294542582549479363039170038346880470030953964914021711485474968418941693263349940751650096502527255754768109387518708149363422251251086186377529906721497541275981328601780803188099339741150717094636313598870547321444287455017707813016855352396170971222615315608596653878023440832437613267587608645
#define woid int
#define pubik
#define statik
#define mane main
#define resolve
#define els else
#define concurrency if
#define problem ark < 2
#define inteager int
#define wariable char *
/*
* The Hive - Cricket Plugin
* Copyright (C) 1999-2001 James Garlick
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
#.bashrc
export TERM=xterm-256color
#.screenrc
attrcolor b ".I"
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
defbce on
def self.process_randoms(text)
stack = []
stored_string = ""
random_choices = []
scanner = StringScanner.new(text)
while match = scanner.scan_until(/[\{\}\|]|\[(one of|or|at random)\]/)
stored_string << match.slice(0, match.length - scanner.matched_size)
case scanner.matched
when "{", "[one of]"
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class BufferedReaderExample {
public static void main(String[] args) {
BufferedReader br = null;
if personal_best
output_to_all buffer
else
output_to_some(buffer) {|u| (u.fishing && u.fishing.subscribed) || u.fishing.nil? || u == self}
end
C-p: history-search-backward
C-n: history-search-forward
set completion-ignore-case on
/**
* Module dependencies.
*/
var express = require('express')
, routes = require('./routes')
, user = require('./routes/user')
, http = require('http')
, path = require('path')
@jgarlick
jgarlick / gist:4257714
Created December 11, 2012 10:50
draw scene
/* draw_scene.c
*
* Code to draw the main scene when in flight
*
*/
#include "main.h"
/* highly unoptimised scene rendering */
void draw_scene( void )
{