Skip to content

Instantly share code, notes, and snippets.

View jakenotjacob's full-sized avatar
🐼

Jake Campbell jakenotjacob

🐼
View GitHub Profile
@lopspower
lopspower / README.md
Last active October 17, 2024 14:23
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@antirez
antirez / lmdb.tcl
Created April 28, 2017 15:40
LMDB -- First version of Redis written in Tcl
# LVDB - LLOOGG Memory DB
# Copyriht (C) 2009 Salvatore Sanfilippo <antirez@gmail.com>
# All Rights Reserved
# TODO
# - cron with cleanup of timedout clients, automatic dump
# - the dump should use array startsearch to write it line by line
# and may just use gets to read element by element and load the whole state.
# - 'help','stopserver','saveandstopserver','save','load','reset','keys' commands.
# - ttl with milliseconds resolution 'ttl a 1000'. Check ttl in dump!
function ProxyObj(obj)
return {
set = function(k, val)
obj[k] = val
end,
get = function(k)
local v = obj[k]
if type(v) == 'table' and not rawget(v, '__cfx_functionReference') then
return ProxyObj(v)
else
fc-glyph - display all fonts which contain specified glyphs