I hereby claim:
- I am umaar on github.
- I am umaar (https://keybase.io/umaar) on keybase.
- I have a public key whose fingerprint is 8D22 FAC6 0CE3 6C2A F52A F55D ECE8 0641 2622 7FB5
To claim this, I am signing this object:
(function(){ | |
'use strict'; | |
let cap = 100; // 100+ RTs or hearts produces max yellow bg color | |
$('.tweet', '.stream-items').each((i, tweet) => { | |
let all_nums = $(tweet) | |
.find('.ProfileTweet-actionList .ProfileTweet-actionCount:visible') | |
.map((j, elem) => Number(elem.textContent)).toArray(); | |
#!/bin/sh | |
for i in trip_data_*.csv.zip | |
do | |
unzip -c $i | |
done | | |
tr -d '\015' | | |
awk -F, '{print $12 "," $11 " 1:0"; print $14 "," $13 " 1:1"}' | | |
/data2/data/github/datamaps/encode -z19 -m1 -o nyc-taxi-all |
// paste in your console | |
speechSynthesis.onvoiceschanged = function() { | |
var msg = new SpeechSynthesisUtterance(); | |
msg.voice = this.getVoices().filter(v => v.name == 'Cellos')[0]; | |
msg.text = Object.keys(window).join(' '); | |
this.speak(msg); | |
}; |
const combine = (...arrays) | |
=> [].concat(...arrays); | |
const compact = arr | |
=> arr.filter(el => el); | |
const contains = (() => Array.prototype.includes | |
? (arr, value) => arr.includes(value) | |
: (arr, value) => arr.some(el => el === value) | |
)(); |
I hereby claim:
To claim this, I am signing this object:
// called once, to initialize | |
createBubbles: function(){ | |
var self = this, | |
el = this.element, | |
width = $(window).width(), | |
height = $(window).height(), | |
canvas = document.createElement('canvas'); | |
el.style.width = canvas.width = width; | |
el.style.height = canvas.height = height; |
/* | |
* Hover over an element on the page | |
*/ | |
(function() { | |
"use strict"; | |
var webdriver = require('selenium-webdriver'); | |
var driver = new webdriver.Builder().usingServer().withCapabilities({'browserName': 'chrome' }).build(); |
/** | |
* Polyfill for the vw, vh, vm units | |
* Requires StyleFix from -prefix-free http://leaverou.github.com/prefixfree/ | |
* @author Lea Verou | |
*/ | |
(function() { | |
if(!window.StyleFix) { | |
return; |
/*global console */ | |
/* | |
* In this file, we do a search for two non-existent selectors | |
* However the failure of only one of them contains the error we actually want | |
*/ | |
(function() { | |
"use strict"; |
/** | |
* iOS 6 style switch checkboxes | |
* by Lea Verou http://lea.verou.me | |
*/ | |
:root input[type="checkbox"] { /* :root here acting as a filter for older browsers */ | |
position: absolute; | |
opacity: 0; | |
} |