curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python
sudo pip install bottle
/* | |
# Create customized Web Fonts CSS file from a folder of PSDs | |
1. Edit the root location for the font. | |
2. Add any mapping you might need/want from Desktop fonts to the webfonts. | |
3. In Photoshop go to File > Scripts > Browse... and select the fonts.jsx file | |
4. Select the Folder where you PSDs are. | |
5. Photoshop scripting is very slow, so wait for it to complete and save a fonts.css file to the location. | |
## Sample file created: |
#! /usr/bin/python | |
# | |
# Download all your gists locally. | |
# Change, modify and create new gists offline, then upload to github | |
# | |
# How to install: | |
# curl -O https://gist.github.com/raw/5096082/ac83f7ed9ce57323785291b91c71fd4d6e2c3d42/gist && export GITHUB_USERNAME=xxxxxxx && export GITHUB_PASSWORD=xxxxxxxx | |
# | |
# ## Feature Set: | |
# * list my gists |
#! /usr/bin.bash | |
# | |
# This is a list of commands used to setup my raspberry pi. | |
# This setups: | |
# update pi | |
# setup wifi usb dongle | |
# pip + django + virtualenv | |
# nodejs | |
# ruby | |
# vnc |
/* | |
// EXAMPLES: | |
var payday = new SeriesDate('DAILY', [14], '1/15/2010') | |
var gas = new SeriesDate('MONTHLY', [1,15], '1/15/2010') | |
var electricity = new SeriesDate('MONTHLY', [20], '1/15/2010') | |
payday.next(); // move to next payday | |
payday.prev(); // move to previous payday |
// | |
// CoreData+FreezeDry.h | |
// Streamlines transfering a single core data entity between treads. | |
// This WILL run SLOW with lots of data. | |
// Minimize changing threads! | |
// Use it on single objects. | |
// Use it as an example to batch transfer a large set of data. | |
// | |
// Created by Bobby Schultz on 1/13/12. | |
// |
radioactivate = function(obj) | |
{ | |
for (var attr in obj) | |
{ | |
if (typeof obj[attr] === "function") | |
(function(obj, attr){ | |
var _attr = obj[attr]; | |
obj[attr] = function(){ | |
var input = Array.prototype.slice.call(arguments,0); | |
var output = _attr.apply(_attr, arguments) |
#!/bin/bash | |
TFILE="out.tmp.$$" | |
SOURCE_FOLDER="/full/path/to/my/source" | |
ROOT_RELATIVE="/full/path/to/root/for/requirejs/" | |
while read f | |
do | |
# get the file name | |
i=$(basename "$f") |