Skip to content

Instantly share code, notes, and snippets.

Git Cheat Sheet

Commands

Getting Started

git init

or

@luser-dr00g
luser-dr00g / stars.ps
Created August 30, 2014 09:30
my god! it's full of stars
/starpath { % n r1 r2 x y
matrix currentmatrix 6 1 roll % [] n r1 r2 x y
translate % [] n r1 r2
10 dict begin {/r2 /r1 /n} {exch def}forall % []
/da 360 n div def
r2 0 moveto
n {
@cky
cky / GSString.java
Created August 19, 2012 05:32
Ruby string parser (minus interpolation) using Java enums
package nz.kiwi.chris.j7gs.types;
import com.google.common.base.Preconditions;
public class GSString implements Comparable<GSString> {
private final String value;
public GSString(String value) {
this.value = value;
}