core.fscache = true
to enable uber-speed git status.
| CXX := clang++ | |
| CXXFLAGS := -std=c++0x -xc++ -march=native -O3 -Wall -g | |
| DPROFILE := -DPROFILE | |
| CXXVERBOSE := -ftree-vectorizer-verbose=0 | |
| LIBS := -lprofiler | |
| TIME := time | |
| export CPUPROFILE=join.prof | |
| export CPUPROFILE_FREQUENCY=10000000000 | |
| export CPUPROFILE_REALTIME=0 |
| package main | |
| import ( | |
| "errors" | |
| "fmt" | |
| "math/rand" | |
| "runtime" | |
| "time" | |
| ) |
| //usr/bin/env go run $0 $@ ; exit | |
| package main | |
| import "fmt" | |
| func main() { | |
| fmt.Println("Hello, Go!") | |
| } |
I hereby claim:
To claim this, I am signing this object:
| /** | |
| * Assuming two methods are present: | |
| * - List<SomeType> getChildren(); | |
| * - String() getName(); | |
| * Works for every tree structure. | |
| * | |
| * @return an ASCII-Tree of children | |
| */ |
| #!/bin/bash | |
| # background-changer | |
| # 2012-04-06 | |
| # use to switch gnome background to a random one | |
| # uses every file in bg_path and follows the first symlinks in that directory | |
| # outputs the selected file | |
| # author: cfstras <c@cfs.im> | |
| # license: beerware | |
| # | |
| # use for example in a crontab: |
| // Bib's | |
| var net = require('net'); | |
| // Fettes Array | |
| var clients = []; | |
| // create teh server! | |
| var srv = net.createServer(); | |
| // connection handler, das Argument ist ein Socket mit der neuen Verbindung |
| # functions | |
| f = (x) -> | |
| 2 - x*x - Math.exp(x) | |
| fd = (x) -> | |
| -2*x - Math.exp(x) | |
| newt = (x) -> | |
| x - f x / fd x |
| :toLower str -- converts uppercase character to lowercase | |
| :: -- str [in,out] - valref of string variable to be converted | |
| if not defined %~1 EXIT /b | |
| for %%a in ("A=a" "B=b" "C=c" "D=d" "E=e" "F=f" "G=g" "H=h" "I=i" | |
| "J=j" "K=k" "L=l" "M=m" "N=n" "O=o" "P=p" "Q=q" "R=r" | |
| "S=s" "T=t" "U=u" "V=v" "W=w" "X=x" "Y=y" "Z=z" "Ä=ä" | |
| "Ö=ö" "Ü=ü") do ( | |
| call set %~1=%%%~1:%%~a%% | |
| :: it's nice how this line manages to represent the horrors of syntax in under 30 characters. | |
| ) |