I hereby claim:
- I am ryananguiano on github.
- I am ryananguiano (https://keybase.io/ryananguiano) on keybase.
- I have a public key ASAHSt1N6g4nCI8TQ5PbcPC2Q92xMkHpNnoKWnspRlEKZgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
PORTB = $6000 | |
PORTA = $6001 | |
DDRB = $6002 | |
DDRA = $6003 | |
E = %10000000 | |
RW = %01000000 | |
RS = %00100000 | |
.org $8000 |
# Fix for http://chase-seibert.github.io/blog/2011/07/29/python-calculate-lighterdarker-rgb-colors.html | |
def color_variant(hex_color, brightness_offset=1): | |
""" takes a color like #87c95f and produces a lighter or darker variant """ | |
if len(hex_color) != 7: | |
raise Exception("Passed %s into color_variant(), needs to be in #87c95f format." % hex_color) | |
rgb_hex = [hex_color[x:x+2] for x in [1, 3, 5]] | |
new_rgb_int = [int(hex_value, 16) + brightness_offset for hex_value in rgb_hex] | |
new_rgb_int = [min([255, max([0, i])]) for i in new_rgb_int] # make sure new values are between 0 and 255 | |
# hex() produces "0x88", we want just "88" |
Ryan has been designing and implementing technological solutions in various industries for over 13 years. Over the past decade, he has been a part of helping a number of companies venture into the digital realm and implement policies that allow for vast creativity and innovation to occur. He has built many platforms that utilize state-of-the-art technology in order to gain a competitive edge and created tools that help businesses achieve their goals. Ryan currently works at RevPoint Media developing www.jangl.com
- certain endpoints are always blocked | |
if nginx_uri == "/_access_token" or nginx_uri == "/_me" then | |
ngx.exit(403) | |
end | |
-- import requirements | |
local cjson = require "cjson" | |
-- setup some app-level vars | |
local app_id = "APP_ID" |