Skip to content

Instantly share code, notes, and snippets.

View pixelass's full-sized avatar
😶‍🌫️
who?

Gregor Adams pixelass

😶‍🌫️
who?
  • Hamburg, Germany
  • 07:27 (UTC +02:00)
View GitHub Profile
@pixelass
pixelass / bitcolor.js
Created April 14, 2016 11:26 — forked from lrvick/bitcolor.js
Javascript functions for doing fast binary/hex/RGB color conversions using bitwise operations.
// convert 0..255 R,G,B values to binary string
RGBToBin = function(r,g,b){
var bin = r << 16 | g << 8 | b;
return (function(h){
return new Array(25-h.length).join("0")+h
})(bin.toString(2))
}
// convert 0..255 R,G,B values to a hexidecimal color string
RGBToHex = function(r,g,b){
@pixelass
pixelass / tmux-cheatsheet.markdown
Created October 16, 2015 08:51 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@pixelass
pixelass / gist:dace9b37c83dc232e233
Created October 16, 2015 07:48 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: