Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
– The Git website
Choose one of the following options.
| #!/bin/sh | |
| # Create a bootable ISO from the OS X Mavericks app | |
| # http://thezinx.com/misc/trend/create-bootable-dmg-iso-mavericks-app/ | |
| if [ ! -f /Applications/Install\ OS\ X\ Mavericks.app/Contents/SharedSupport/InstallESD.dmg ]; then | |
| echo "Download the OS X Mavericks App and then rerun this script." | |
| open "https://itunes.apple.com/us/app/os-x-mavericks/id675248567" | |
| exit 1 | |
| fi |
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
– The Git website
Choose one of the following options.
| # A little Meteor CheatSheet about Iron-Router. (updated on a weekly basis) | |
| # Check our Studio: https://gentlenode.com/ | |
| meteor add iron:router | |
| meteor update iron:router | |
| # Iron Router > Configuration |
| #!/bin/bash | |
| ###################################################################### | |
| #This is an example of using getopts in Bash. It also contains some | |
| #other bits of code I find useful. | |
| #Author: Linerd | |
| #Website: http://tuxtweaks.com/ | |
| #Copyright 2014 | |
| #License: Creative Commons Attribution-ShareAlike 4.0 | |
| #http://creativecommons.org/licenses/by-sa/4.0/legalcode |
| import java.io.IOException; | |
| import java.util.Properties; | |
| import kafka.server.KafkaConfig; | |
| import kafka.server.KafkaServerStartable; | |
| public class KafkaLocal { | |
| public KafkaServerStartable kafka; | |
| public ZooKeeperLocal zookeeper; |
| /* | |
| A Tour of Go: page 44 | |
| http://tour.golang.org/#44 | |
| Exercise: Loops and Functions | |
| As a simple way to play with functions and loops, implement the square root function using Newton's method. | |
| In this case, Newton's method is to approximate Sqrt(x) by picking a starting point z and then repeating: z - (z*z - x) / (2 * z) |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
#Create bitbucket branch
##Create local branch
$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
master
* sync
| db.Collection.find({ | |
| created_at : { | |
| '$gte': new Timestamp(new Date(2012, 0, 21), 0), | |
| '$lte': new Timestamp(new Date(2012, 0, 22), 0) | |
| }) |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)