A simple Chrome extension to access hotel.dev (https://github.com/typicode/hotel)
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
img[src$=".svg"] { | |
width: 100%; | |
} |
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
#!/usr/bin/env osascript -l JavaScript | |
function run(argv) { | |
if(argv.length == 0) { | |
console.log('Usage: of [ transport text ]') | |
} else { | |
Application('OmniFocus').parseTasksInto(Application('OmniFocus').documents[0], { asSingleTask: true, withTransportText: argv.join(' ') }) | |
ObjC.import("stdlib") | |
$.exit(0) | |
} | |
} |
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
#media::before { | |
content: 'desktop'; | |
} | |
@media (max-width: 500px) { | |
#media::before { | |
content: 'mobile'; | |
} | |
} |
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
/* https://twitter.com/Dmitry_Zubkov/status/726555594635808768 */ | |
:root { | |
font-size calc(1vw + 1vh + .5vmin); | |
} | |
body { | |
font 1em/1.6rem sans-serif; | |
} |
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
if(!window.Promise) { | |
var req = new XMLHttpRequest(); | |
req.open('GET', 'https://cdn.polyfill.io/v2/polyfill.min.js?features=Promise', false); | |
req.send(); | |
eval(req.responseText); | |
} |
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
var brain = require('brain.js') | |
var net = new brain.NeuralNetwork(); | |
console.log('Generating training data...'); | |
var data = []; | |
for(var i=0; i<100000; i++) { | |
var obj = {}; | |
obj.input = []; | |
obj.input[0] = Math.random(); | |
obj.input[1] = 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
telnetd -l /bin/sh & |
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 copytext(text) { | |
var textField = document.createElement('textarea'); | |
textField.innerText = text; | |
document.body.appendChild(textField); | |
textField.select(); | |
document.execCommand('copy'); | |
textField.remove(); | |
} | |
// credit to reddit.com/u/liamht |
I hereby claim:
- I am wtfaremyinitials on github.
- I am wtfaremyinitials (https://keybase.io/wtfaremyinitials) on keybase.
- I have a public key ASBes1cU6650KZDWsaDCfxHilxKic-Oc1qMXknhn37c5Kwo
To claim this, I am signing this object: