I hereby claim:
- I am harryfk on github.
- I am harryfk (https://keybase.io/harryfk) on keybase.
- I have a public key whose fingerprint is F2F6 4C8D CE56 EE56 494F 6407 AEE7 A964 3B9A DA71
To claim this, I am signing this object:
// this is a Google Apps script which fetches a random gif from Giphy and then sends it via email to people | |
function sendMail(){ | |
var url = "http://api.giphy.com/v1/gifs/random?api_key=dc6zaTOxFJmzC&tag=thanks"; | |
var response = UrlFetchApp.fetch(url, {}).getContentText(); | |
response = JSON.parse(response); | |
var subject = 'Your friendly time tracking reminder.'; | |
var body = 'Please, would you track your time today? It only takes five minutes.\n\n '; | |
var sender = 'Annoying Harry'; |
(function () { | |
var interview = function () { | |
return [ | |
{ type: 'output', filter: function(source){ | |
var questionRegex = /(<p>)(<strong>)?(Q|speaker): /gi; | |
return source.replace(questionRegex, function(match, p, s, i) { | |
var cssClass; | |
if (i.toLowerCase() == 'q') { cssClass= 'text-question'; } | |
if (i.toLowerCase() == 'speaker') { cssClass = 'text-speaker'; } | |
if (s) { |
(function () { | |
var interview = function () { | |
return [ | |
{ type: 'lang', filter: function(text) { | |
var inlineRegex = /\[([QqAa])\]\((.*?)\)/g; | |
text = text.replace(inlineRegex, function(match, n, t) { | |
var cssClass = (n == 'Q' || n == 'q') ? 'text-question' : 'text-answer'; | |
var s = '<span class="'+cssClass+'">'+t+'</span>'; | |
return s; | |
}); |
I hereby claim:
To claim this, I am signing this object:
(function () { | |
var footnotes = function () { | |
return [ | |
{ type: 'lang', filter: function(text) { | |
// Use footnotes like so: "foo[^1](This is the footnote text)" | |
var i = 0; | |
var inline_regex = /\[\^(\d|n)\]\((.*?)\)/g; | |
text = text.replace(inline_regex, function(match, n, t) { | |
// We allow both automatic and manual footnote numbering | |
if (n == "n") n = i+1; |
// the basics | |
* | |
+box-sizing(border-box) | |
@mixin width($percent, $alignment: null) | |
@if $percent == 33 | |
$percent: 33.334 | |
@if $percent == 66 | |
$percent: 66.667 |