Skip to content

Instantly share code, notes, and snippets.

View marceloCodget's full-sized avatar

Marcelo marceloCodget

View GitHub Profile
@marceloCodget
marceloCodget / dabblet.css
Created May 31, 2013 17:18
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@marceloCodget
marceloCodget / gist:3862929
Created October 10, 2012 03:05
RGB to Hex in Lua
-- passing a table like {255, 100, 20}
function application:rgbToHex(rgb)
local hexadecimal = '0X'
for key, value in pairs(rgb) do
local hex = ''
while(value > 0)do
local index = math.fmod(value, 16) + 1