View producer_consumer_problem.rb
semaphore =
require 'thread'
queue =
class Item
attr_reader :data
def initialize
View KeyBindings.dict
"\UF729" = moveToBeginningOfParagraph:; // home
"\UF72B" = moveToEndOfParagraph:; // end
"$\UF729" = moveToBeginningOfParagraphAndModifySelection:; // shift-home
"$\UF72B" = moveToEndOfParagraphAndModifySelection:; // shift-end
// Emacs keybindings
"^ " = "setMark:";
"~d" = "deleteWordForward:";
"~w" = "copy:"; /* M-w */
"^w" = "deleteWordBackward:";

Hi Runners,

We are going to meet tomorrow at 6:40am outside Hyatt Regency Entrance gate.

We will do quick warm up.

Run starts at 7am sharp from outside Hyatt

Here is the route

View gist:4fae9b51f1d416504899
brew install socat
brew cask install xquartz
open -a XQuartz
socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"
# in another window
docker run -e DISPLAY= jess/geary
View webpack.config.js
var ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
entry: {
javascript: './public/javascripts/app.jsx'
output: {
path: __dirname + "/public",
filename: 'bundle.js'
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View gist:78c882a48b46d140cfac
# Prints unique sha1 for the file
git hash-object data/number.txt
#Lists commit object ids
git rev-list --objects —all
# Lists out the git objects
find .git/objects -type f
# Lists files added to git index

Show git branch name in Bash prompt

Put this line in your ~/.bashrc or ~/.bash_profile

export PS1="\h:\W \u\$(__git_ps1 \" (%s) \")\$ "

Configure shortcuts

git config --global checkout
View gist:9d56233ef8561b7eb1fc


    1. sudo vi /etc/connman.conf
    1. Make sure you have following