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
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') |
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
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(); |
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
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; |
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
# 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 |
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
// | |
// 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) |
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
#!/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 |
Install Python
$ brew install readline sqlite gdbm --universal
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
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
// 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. | |
*/ | |
/** |