Skip to content

Instantly share code, notes, and snippets.

View andrewchee's full-sized avatar

Andrew Chee andrewchee

View GitHub Profile
@andrewchee
andrewchee / particle.pde
Created March 12, 2012 03:27
A particle system in Processing
class Particle
{
PVector position;
PVector velocity;
Particle()
{
//position = new PVector(random(0,width),random(0,height));
position = new PVector(mouseX, mouseY);
//position = new PVector((jQuery(window).width()/2),(jQuery(window).height()/2));
velocity = new PVector(random(-1,1),random(-1,1));
@andrewchee
andrewchee / gestalt_chee.ofocus-theme
Created March 30, 2012 05:30
My OmniFocus theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ActionStyle</key>
<dict>
<key>font-weight</key>
<integer>9</integer>
<key>item-pre-children-gap(com.omnigroup.OmniOutliner)</key>
<real>4</real>
@andrewchee
andrewchee / Instajournal.html
Created May 26, 2012 05:05
Instajournal Tumblr Theme
<!--
Instajournal v1.1
http://instajournal.tumblr.com/
By B-yce
http://b-yce.com/
-->
<html>
<head>
<link rel="shortcut icon" href="{Favicon}">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--
<meta name="color:Accent" content="#009900"/>
-->
<title>{PageTitle}</title>
<style>
body {
@andrewchee
andrewchee / shell
Created August 5, 2012 02:47 — forked from trekdemo/shell
Diff files selected in the TextMate drawer with Kaleidoscope
sudo ln -s /usr/local/bin/ksdiff /usr/bin/ksdiff
@andrewchee
andrewchee / username.github.com.text
Created August 5, 2012 16:43 — forked from atomize/username.github.com.text
How to setup username.github.com
Instructions for setting up username.github.com *
Create a repo named username.github.com
Push a `master` branch to GitHub and enjoy!
Instructions for setting up username.github.com/repo-name *
Caution: make your working directory clean before you do this (either stash or commit), otherwise this will lose any changes you've made to your project since the last commit.
cd /path/to/repo-name
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
echo "My GitHub Page" > index.html
@andrewchee
andrewchee / ubu-pull
Created August 7, 2012 17:23
back up ubu.com / sound
curl -O http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar.gz
tar -xzvf wget-1.13.4.tar.gz
cd wget-1.13.4
./configure --with-ssl=openssl
make
sudo make install
wget -r -H -nd -np -l 3 -A .mp3,.ogg,.wav,.aif -t 1 -erobots=off http://www.ubu.com/sound
@andrewchee
andrewchee / gist:a83b0b3f7980961061d0
Last active August 29, 2015 14:04
brew install rtmpdump
$ brew update
$ brew install rtmpdump
// if
/usr/local/.git: Permission denied
Error: Failure while executing: git init
// then
$ sudo chmod 777 /usr/local
$ brew update
.document-library-tile {
background-color: #1AD6F8; padding: 20px;
}
.js-sort-title, .document-library-tile p {
color: #ffffff !important
}
.document-library-tile:nth-child(odd) {
background-color: #053873
}
.document-library-tile:hover {
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to make opened Markdown files always be soft wrapped:
#
# path = require 'path'
#