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
#!/bin/bash | |
RED="\033[41m \033[0m" | |
GREEN="\033[42m \033[0m" | |
GAP=" " | |
birthdate="[ENTER DATE HERE]" | |
name="[ENTER NAME HERE]" | |
life_expectancy=65 |
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 Template { | |
constructor(id, mount) { | |
if (id) { | |
this.fragment = document.getElementById(id).content.cloneNode(true); | |
} | |
this.mount = mount; | |
this.eventHandlers = {}; | |
this.children = {}; | |
} | |
async addChild(name, child) { |
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
// ==UserScript== | |
// @name Apply rules to dynamically loaded content | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
// Create a new mutation observer | |
const observer = new window.MutationObserver(() => { | |
// Apply your rules here | |
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
const test = require('ava') | |
test('Should render power-assert', async t => { | |
const three = 3; | |
const x = [1,2,3] | |
t.assert(x.length > three, 'rendering power-assert') | |
}) |
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
const fs = require('fs'); | |
const Header = require('tar/lib/header'); | |
const fd = fs.openSync('./service.tar', 'r+'); | |
const childProcess = require('child_process'); | |
const args = require('yargs') | |
.option('u', { | |
alias: 'user', | |
demandOption: true, | |
describe: 'the user to set permission bits to', |
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
#!/bin/bash | |
# Remove anything that may have been left over by a previous run | |
rm -rf patch orig new | |
mkdir patch | |
for TARBALL in `ls - | node semver-sort.js` | |
do | |
tar -xzf "./-/${TARBALL}" |
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
#!/bin/bash | |
# Save this in your path as `solarized_mocha` and then run `solarized_mocha` in the root of your project | |
find . -name mocha -type d | xargs -I{} sed -i 's|\(.*:\) 90|\1 92|g' {}/mocha.js {}/lib/reporters/base.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
function loadFile() { // 1 | |
fs.readFile('./foobar.txt', 'utf8', saveFile); // 5 | |
} | |
function saveFile(e, contents) { // 2 | |
if(e) { // 6 | |
// Stop executing function, we encountered an error | |
return console.error(e); // 7 | |
} // 8 | |
fs.saveFile('./buzzbazz.txt', 'utf8', done); // 9 |
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
{ | |
"privateKey": "[PRIVATE_KEY]", | |
"publicKey": "[PUBLIC_KEY]", | |
"encryptionKey": "[ENCRYPTION_KEY]" | |
} |
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
### Keybase proof | |
I hereby claim: | |
* I am retrohacker on github. | |
* I am retrohacker (https://keybase.io/retrohacker) on keybase. | |
* I have a public key ASBV4vwsEVtKRg2DmXkhKUZ1KUOsyCNIdwsOSgs2xdfV1Ao | |
To claim this, I am signing this object: |
NewerOlder