Put flip somewhere in your $PATH and chmod a+x it.
Copy fuck into ~/.bashrc.
| import sys, time | |
| while True: | |
| for i in range(311, 319): | |
| print "\r", eval("u'\U0001f%d'" % i), "", | |
| sys.stdout.flush() | |
| time.sleep(0.1) |
| printf (date "+$c2%H$c0:$c2%M$c0:$c2%S, ") |
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
| /* | |
| `arc4random_uniform` is very useful but limited to `UInt32`. | |
| This defines a generic version of `arc4random` for any type | |
| expressible by an integer literal, and extends some numeric | |
| types with a `random` method that mitigates for modulo bias | |
| in the same manner as `arc4random`. | |
| `lower` is inclusive and `upper` is exclusive, thus: | |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
June 1, 2014 – September 15, 2014
Percentage of total visits for sessions among the top 100 pages on ASCIIwwdc.
Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.
This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.
You are encouraged to fork this and modify it to your heart's content to match your own needs.
| // Basically, these are if and else statements respectively | |
| // without the opposite clause | |
| func when(test: @autoclosure () -> Bool, action: () -> ()) { | |
| if test() { action() } | |
| } | |
| func unless(test: @autoclosure () -> Bool, action: () -> ()) { | |
| if !test() { action() } | |
| } |