Skip to content

Instantly share code, notes, and snippets.

View Plazmaz's full-sized avatar
👀
’<!--${7*7}<#--{#{{!--#}#{7*7}${{7*7}}-->{{__proto__}}--}}{{this}}#set($x=7*7)$x

Dylan Katz Plazmaz

👀
’<!--${7*7}<#--{#{{!--#}#{7*7}${{7*7}}-->{{__proto__}}--}}{{this}}#set($x=7*7)$x
View GitHub Profile
@Plazmaz
Plazmaz / scrape.js
Last active February 23, 2017 18:54
Extract data from Google Books Ngram Viewer(https://books.google.com/ngrams/graph)
//This can be pasted into the chrome dev console to generate a comma seperated list
//of coordinates. This is copied to your clipboard and can be pasted into a CSV.
var children = document.getElementsByClassName("y axis main")[0].children;
var scaleStr = children[children.length - 2].children[1].innerHTML;
scaleStr = scaleStr.substring(0, scaleStr.length - 1);
var scale = 413 / parseFloat(scaleStr);
var data = document.getElementsByClassName("line visible clickable main")[0].getAttribute("d");
var coords = data.substr(1).split("L")
var msg = ""
for(var i = 0; i < coords.length; i++) {
@Plazmaz
Plazmaz / Script for isitchristmas.co
Last active August 29, 2015 14:12
script for http:/isitchristmas.com. this script makes spirals around everyone and turns you into a troll face.
var radius = 2;
var i = 0;
var idx = 0;
var increment = 5;
var icon = "../emojis/trollface"
IIC.setCountry(icon);
document.onmousemove = move;
var loop = setInterval(function() {
for (var id in others) {
//console.log(id)
### Keybase proof
I hereby claim:
* I am Plazmaz on github.
* I am dtk (https://keybase.io/dtk) on keybase.
* I have a public key whose fingerprint is 7759 0E29 7266 DB91 B8D2 4112 8BEA B0BC 4651 FEDA
To claim this, I am signing this object: