JoeAcchino
func _on_StartGame_pressed():
pass # Replace with function body.
Probably not ready for the public, but fun to hack around and trying to understand how it works from the inside out. c := colly.NewCollector()
// this functions create a goroutine and returns a channel
ch := c.HTML("a")
e := <- ch
link := e.Attr("href")
// ...
I'm a bit rusty (ah!) with go, so bear with me if the above contains errors.I'm also reading again Comme un roman by Danil Pennac, a beautiful essay about the joys of reading.
Go Challenge 3: write a photo-mosaic generating web application
They also assembled a tutorial for beginners: http://atariage.com/forums/topic/33233-sorted-table-of-conte...
From Magic to Science (sort of)
With Selenium you have full cross browser support, while Phantom is Webkit based.
I solved this by adding the following line in my ~/.bashrc
shopt -s checkwinsize
Never tried on Mac OS X though, so I don't know if it works.Next, sort pages by query time and optimize them first.
CFLAGS="-g -pipe" make -k donut
cc -g -pipe donut.c -o donut
donut.c:1:2: warning: data definition has no type or storage class [enabled by default]
donut.c: In function ‘main’:
donut.c:4:16: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
donut.c:5:12: warning: incompatible implicit declaration of built-in function ‘memset’ [enabled by default]
donut.c:9:63: error: ‘s’ undeclared (first use in this function)
donut.c:9:63: note: each undeclared identifier is reported only once for each function it appears in
donut.c:10:18: error: expected ‘,’ or ‘;’ before ‘in’
donut.c:11:32: error: ‘t’ undeclared (first use in this function)
make: *** [donut] Errore 1
Compilation exited abnormally with code 2 at Thu Jan 23 16:11:12All it takes is a new release of Firefox (different version in the User-Agent string) a new font or any plugin update.
So with that fingerprint you can possibly identify me now, but you cannot track me over time.
The list of installed plugins is retrieved via JS: window.navigator.plugins.
Not sure about fonts, though.
OrgMode
Profiling and creating call graphs for Go
Is HTTPS supported or planned?
[^ @]*@[^ @]*
will validate strings like `@example.com` and `joe@` and even a single `@`. Probably [^ @]+@[^ @]+
is what he wants, plus server side validation (that is the classic "click link to validate address" email). find ~/my/docs/ -type f -name '*.txt' -exec sed -i.bak 's/inheritance/composition/g' {} +
This will search all files ending in `.txt` and will exec `sed 's/inheritance/composition/g'` on it. Sed modifies files in-place and saves a backup file with .bak extension (-i.bak) and is called the minimum necessary times (-exec +).My best advice to someone using the command line is to learn `find` + `xargs` or, even better, `find` + `parallel`.