This file contains hidden or 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
#!/bin/sh | |
# Add RVM to PATH for scripting | |
PATH=/usr/local/bin:$PATH | |
# Add brew sbin folder to path | |
export PATH="/usr/local/sbin:$PATH" | |
# Add npm locations to path | |
export NODE_PATH="/usr/local/lib/node_modules:/usr/local/lib/node:$NODE_PATH" | |
export PATH="/usr/local/share/npm/bin:$PATH" |
This file contains hidden or 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
function Point(x,y) { | |
return {x: x, y: y}; | |
} | |
function Grid(initials, dimx, dimy) { | |
var points = []; | |
for (i = 0; i < dimx*dimy; i++) { | |
var enabled = true; | |
for (j = 0; j < initials.length; j++) | |
if (i == initials[j]) |
This file contains hidden or 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/env node | |
var http = require('http'); | |
var argv = process.argv.splice(2), | |
truecount = argv.length, | |
pages = []; | |
function printUrls() { | |
if (--truecount > 0) | |
return; |
This file contains hidden or 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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% % | |
% 276 Introduction to Prolog % | |
% % | |
% Coursework 2013-14 (crossings) % | |
% % | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
%% ------------ (utilities) DO NOT EDIT |
This file contains hidden or 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
# -*- makefile -*- | |
SHELL = /bin/sh | |
VPATH = $(SRCDIR) | |
# Binary utilities. | |
# If the host appears to be x86, use the normal tools. | |
# If it's x86-64, use the compiler and linker in 32-bit mode. | |
# Otherwise assume cross-tools are installed as i386-elf-*. |
This file contains hidden or 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
tell application "Chrome" to tell the active tab of its first window | |
reload | |
end tell |
This file contains hidden or 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
################################################################################ | |
# Seed data | |
################################################################################ | |
CITIES = { # LAT, LONG | |
london: [51.5072, 0.1275] | |
manchester: [53.4667, 2.2333] | |
newcastle: [54.9740, 1.6132] | |
bristol: [51.4500, 2.5833] | |
southampton: [50.8970, 1.4042] |
This file contains hidden or 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
function! GenPrototypes(reg) | |
let fs=[] | |
let l:space = '\_s\{-}' | |
let l:keywd = '\(\(\w\+\s\+\)\+\)' . l:space ") #1 | |
let l:rtype = '\(\w\+\)' . l:space ") #3 | |
let l:fname = '\(\w\+\)' . l:space ") #4 | |
let l:parms = '\((.*)\)' . l:space ") #5 | |
let l:block = '\({\_.\{-}}\)' | |
let l:regex = l:keywd . l:rtype | |
\ . l:fname . l:parms |
This file contains hidden or 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
# -*- makefile -*- | |
include $(patsubst %,$(SRCDIR)/%/Make.tests,$(TEST_SUBDIRS)) | |
# Colors! | |
GREEN =\e[01;38;5;82m | |
PINK =\e[01;38;5;197m | |
D =\e[01;37;40m | |
CLRCOL =\e[0m |
This file contains hidden or 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
PRI_MAX = 63 | |
RUN_TIME = 36/4 | |
TIMER_INTERVAL = 4 | |
TICKS_PER_SEC = 100 | |
crrt = null | |
ticks = 0 | |
create_thread = (name, nice, pri = PRI_MAX) -> | |
{ name: name, p: pri, n: nice, rcpu: 0 } |