Skip to content

Instantly share code, notes, and snippets.

View moollaza's full-sized avatar

Zaahir Moolla moollaza

View GitHub Profile
### Keybase proof
I hereby claim:
* I am moollaza on github.
* I am moollaza (https://keybase.io/moollaza) on keybase.
* I have a public key ASD8PQM0qzoAWQNrGy8Sxl2jhv8_QLruybvSqTsYO4Phfwo
To claim this, I am signing this object:
@moollaza
moollaza / WordCount.pm
Last active March 26, 2017 19:39
DuckDuckHack Webcast - Making a "Wordcount" Goodie Instant Answer with JavaScript & Templates
package DDG::Goodie::WordCount;
use DDG::Goodie;
use strict;
zci answer_type => 'word_count';
zci is_cached => 1;
triggers start => 'word count', 'wordcount', 'how many words in';
@moollaza
moollaza / RandomPerson.pm
Last active February 16, 2017 11:13
DuckDuckHack Webcast - Making a "Random Person" Spice Instant Answer
package DDG::Spice::RandomPerson;
use DDG::Spice;
spice is_cached => 0;
spice proxy_cache_valid => "418 1d";
spice wrap_jsonp_callback => 1;
spice to => 'http://api.randomuser.me/';
@moollaza
moollaza / colorGen.lua
Last active October 17, 2015 02:13
Corona Labs Lua - Hex String to RGB Tuple Helper
local colorGen = {}
-- Table of named HEX colors
local _colors = {
["darkest-grey"] = "#404040", -- .25
["darker-grey"] = "#727272", -- .37
["dark-grey"] = "#868686", -- .45
["grey"] = "#929292", -- .50
["medium-grey"] = "#BFBFBF", -- .70
["light-grey"] = "#EFEFEF", -- .92
@moollaza
moollaza / gist:dc4c5d9316ecd18916a0
Created September 2, 2015 22:13
Verification for OneName
This is weird.