View stay_up_to_date_in_programming.md
View producer_consumer_problem.rb
BUFFER_SIZE = 100
semaphore = Mutex.new
require 'thread'
queue = Thread::Queue.new
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:";
View DeccanRubyConf5K.md

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 https://www.strava.com/routes/2996162

View gist:4fae9b51f1d416504899
# https://github.com/docker/docker/issues/8710
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=192.168.59.3:0 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
View git_default_settings.md

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 alias.co checkout
View gist:9d56233ef8561b7eb1fc

Steps

    1. sudo vi /etc/connman.conf
    1. Make sure you have following
   [General]
   PreferredTechnologies=wifi,ethernet