Skip to content

Instantly share code, notes, and snippets.

Michael Hüneburg michaelhue

Block or report user

Report or block michaelhue

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lrvick / bitcolor.js
Created Mar 18, 2012
Javascript functions for doing fast binary/hex/RGB color conversions using bitwise operations.
View bitcolor.js
// 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
// convert 0..255 R,G,B values to a hexidecimal color string
RGBToHex = function(r,g,b){
studiomohawk / git pre-commit juicer
Created Jan 31, 2011
\.git\hooks\pre-commit use juicer to merge and minify css
View git pre-commit juicer
exec juicer merge --force css/master.css
exec git add .
You can’t perform that action at this time.