My efforts to port http://www.youtube.com/watch?v=f6kdp27TYZs to Clojure.
func boring(msg string) {
for i := 0; ; i++ {
fmt.Println(msg, i)
time.Sleep(time.Second)
}| #!/bin/bash | |
| # Try to extract the latest tag's commit hash | |
| git ls-remote --tags $(grep source= PKGBUILD | cut -d\" -f2 | cut -d\# -f1 | cut -d+ -f2 | sed "s/\$pkgname/$(grep pkgname= PKGBUILD | cut -d= -f2)/g") | tail -1 |
| package main | |
| import ( | |
| "fmt" | |
| "github.com/xyproto/permissionwrench" | |
| "github.com/xyproto/simplehstore" | |
| ) | |
| func main() { | |
| perm, err := permissionwrench.New() |
| #!/bin/sh | |
| git clone https://github.com/robertkrimen/otto | |
| cd otto/otto; go get -d; go build; cd ../.. | |
| git clone https://github.com/tc39/test262.git | |
| git clone https://github.com/test262-utils/test262-harness-py.git | |
| python2 test262-harness-py/src/test262.py --command otto/otto/otto --tests test262 > original.log | |
| rm -rf otto | |
| git clone https://github.com/xyproto/otto.git | |
| cd otto/otto; go get -d; go build; cd ../.. | |
| python2 test262-harness-py/src/test262.py --command otto/otto/otto --tests test262 > xyproto.log |
| actor Main | |
| new create(env: Env) => | |
| env.out.print("dibs!") |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "encoding/json" | |
| ) | |
| func main() { | |
| mapSI := map[string]int{"x": 2} |
| package main | |
| import ( | |
| "fmt" | |
| "github.com/boltdb/bolt" | |
| "github.com/xyproto/permissionbolt" | |
| ) | |
| func main() { | |
| filename := "bolt.db" |
| /* | |
| * Delete unversioned items | |
| * | |
| * Small utility that really should have been a script instead. | |
| * It has worked fine for five years, though. | |
| * Works on both Linux and Windows. | |
| * | |
| * Alexander F Rødseth <[email protected]>, 2015-10-15 | |
| * | |
| * Public Domain |
| package main | |
| import ( | |
| "fmt" | |
| "compress/gzip" | |
| "io" | |
| "io/ioutil" | |
| "bytes" | |
| "log" | |
| ) |
My efforts to port http://www.youtube.com/watch?v=f6kdp27TYZs to Clojure.
func boring(msg string) {
for i := 0; ; i++ {
fmt.Println(msg, i)
time.Sleep(time.Second)
}| #jEdit properties | |
| #Thu Aug 15 11:27:08 CEST 2013 | |
| buffer.indentSize=4 | |
| view.gutter.highlightColor=\#660000 | |
| view.height=1180 | |
| vfs.browser.type.width=100 | |
| view.status.show-caret-virtual=true | |
| view.selectionFg=false | |
| view.status.foreground=\#000000 | |
| view.gutter.highlightInterval=10 |