This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//http://stackoverflow.com/a/24201042/83859 | |
infix operator ^^ { } | |
func ^^ (radix: Double, power: Double) -> Double { | |
return Double(pow(Double(radix), Double(power))) | |
} | |
//Based on https://github.com/d3/d3-color/blob/master/src/lab.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.querySelectorAll('div[class^="B"]').forEach(el=>{ el.className = el.className.replace('Blur','')}) |
Add it as a custom search engine in Chrome by entering chrome://settings/searchEngines
in the search bar and clicking "add".
For the url just write javascript:
and then paste the contents of toggle_gh.js
after the colon, and hit save.
Alternatively, if you'd like a button, you can just paste the javascript: ...
as a "new page" in bookmarks.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
word | count | |
---|---|---|
trump | 5931 | |
great | 5331 | |
will | 5309 | |
that | 4523 | |
with | 3974 | |
have | 3529 | |
this | 2831 | |
they | 2481 | |
president | 2435 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<style> | |
body { | |
background-color: black; | |
height: 100vh; | |
overflow: hidden; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function get_random_emoji(){ | |
let list = ['🌲', '⭐️', '👹', '😱', '👁', '🦀', '🐬', '🏝'] | |
return list[Math.floor(list.length*Math.random())] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<style> | |
body { | |
background-color: black; | |
height: 100vh; | |
overflow: hidden; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Game { | |
constructor(render_board){ | |
this.render_board = render_board | |
this.data = [{row:4, col: 4, icon:'🐄' }] | |
this.render_board(this.data) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Game { | |
constructor(render_board){ | |
this.render_board = render_board | |
this.data = [] | |
for (var row = 0; row < 10; row++) { | |
for (var col = 0; col < 10; col++) { | |
let icon = col < 5 ? '☀️': '🌵' | |
this.data.push({row, col, icon}) | |
} | |
} |
NewerOlder