Moved, see VIM Cheatsheet
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
Before Trump takes office, I want to create a picture of the high-water mark, something I can point to and say “That was how it was” without the fog of time, or the distortions of propaganda and ideology. | |
I was inspired by Sarah Kendzior: Fellow Americans, I have a favor to ask you. | |
Today is November 18, 2016. | |
I want you to write about who you are, what you have experienced, and what you have endured. | |
Write down what you value; what standards you hold for yourself and for others. | |
Write about your dreams for the future and your hopes for your children. | |
Write about the struggle of your ancestors and how the hardship they overcame shaped the person you are today. | |
Write your biography, write down your memories. | |
Because if you do not do it now, you may forget. | |
Write a list of things you would never do. |
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> | |
<meta charset="utf-8"> | |
<title>Placeholder</title> | |
<img data-size="150x300" alt="Asian" data-show-markup> | |
<img data-size="150x300" alt="Bengal"> | |
<script src="placeholder.js"></script> | |
</html> |
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
// LOL this is not production code, but "inspired" by production code | |
const FastBoot = require('fastboot'); | |
const FastBootAppServer = require('fastboot-app-server'); | |
const server = new FastBootAppServer({ | |
gzip: true, // enable gzip compression | |
beforeMiddleware(app) { | |
app.use(async (request, response, next) => { | |
if (request.path === '/render') { |
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 bash | |
# Uninstall this incompatible version | |
brew uninstall --ignore-dependencies readline | |
# Go to the local clone of homebrew-core | |
pushd "$(brew --prefix)/Homebrew/Library/Taps/homebrew/homebrew-core" | |
# Move to the homebrew-core revision that had 7.0.5, last version before 8 | |
# see: https://raw.githubusercontent.com/Homebrew/homebrew-core/b1bd1c4a62e1336422de3614d1fc49ffbce589a8/Formula/readline.rb |
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
{"lastUpload":"2018-10-04T16:15:21.511Z","extensionVersion":"v3.1.2"} |
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
curl -LOk `curl --silent https://api.github.com/repos/jasmine/jasmine/releases/latest | /usr/bin/awk '/browser_download_url/ { print $2 }' | /usr/bin/sed 's/"//g'` |
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
{ | |
"name": "Old Fashioned", | |
"version": "1.0.0", | |
"description": "The Old Fashioned Cocktail", | |
"scripts": { | |
"build": "dissolve && mix && stir && pour && serve", | |
"dissolve": "cat muddler bitters sugar > mixer && muddle", | |
"mix": "cat bourbon > mixer", | |
"stir": "cycle spoon --time 30s", | |
"pour": "pour mixer > tumbler", |
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
// async / await | |
/** | |
* Resolve a truthy value, reject a falsy value. | |
* @param {any} value Any Javascript primative type. | |
* @param {Number} timeout Time n milliseconds before function returns. | |
* @returns {Promise} a Promise. | |
*/ | |
let isTruthy = function(value, timeout) { | |
return new Promise((resolve, reject) => { |
NewerOlder