Install Python
$ brew install readline sqlite gdbm --universal
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
// Task: Implement a 'Range Collection' class. | |
// A pair of integers define a range, for example: [1, 5). This range includes integers: 1, 2, 3, and 4. | |
// A range collection is an aggregate of these ranges: [1, 5), [10, 11), [100, 201) | |
// | |
/** | |
* RangeCollection class | |
* NOTE: Feel free to add any extra member variables/functions you like. | |
*/ | |
/** |
Install Python
$ brew install readline sqlite gdbm --universal
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
#!/bin/bash | |
# License: Public Domain. | |
# Author: Joseph Wecker, 2012 | |
# | |
# Are you tired of trying to remember what .bashrc does vs .bash_profile vs .profile? | |
# Are you tired of trying to remember how darwin/mac-osx treat them differently from linux? | |
# Are you tired of not having your ~/.bash* stuff work the way you expect? | |
# | |
# Symlink all of the following to this file: | |
# * ~/.bashrc |
// | |
// NSString+SplitOnCapital.h | |
// | |
// Created by Draco Li on 2012-08-04. | |
// Copyright (c) 2012 Draco Li. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
@interface NSString (SplitOnCapital) |
# treats your Xcode project file as a binary; prevents Git from trying to fix newlines, show in diffs, and excludes from merges | |
*.pbxproj -crlf -diff -merge |
canvasApp(); | |
function canvasApp() { | |
// Grab the canvas and set the context to 2d | |
var theCanvas = document.getElementById('canvasOne'); | |
var context = theCanvas.getContext("2d"); | |
// Variables | |
var numBalls = 200; // number of balls | |
var maxSize = 15; |
import java.util.ArrayList; | |
import java.util.LinkedList; | |
import java.util.Scanner; | |
public class beauty { | |
public static String solve(String input) { | |
int n = input.length(); |
CONFIG = { | |
less: { | |
input: File.join('.', 'app', 'assets', 'less'), | |
output: File.join('.', 'public', 'css'), | |
input_ext: '.less', | |
output_ext: '.css' | |
}, | |
coffee: { | |
input: File.join('.', 'app'), | |
output: File.join('.', 'public', 'js') |