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
FROM ubuntu:xenial | |
RUN apt-get update && \ | |
apt-get install -yq software-properties-common python-software-properties && \ | |
add-apt-repository ppa:mc3man/ffmpeg-test && \ | |
apt-get update && \ | |
apt-get install -yq ffmpeg-static | |
ADD stabilize.sh /opt/ |
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');
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
zsh -x 2>&1 |
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
/* ******************************************************************************************* | |
* THE UPDATED VERSION IS AVAILABLE AT | |
* https://github.com/LeCoupa/awesome-cheatsheets | |
* ******************************************************************************************* */ | |
// 0. Synopsis. | |
// http://nodejs.org/api/synopsis.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
"In all my days as a turnip farmer, I have not yet experienced the love of a white radish", thought the farmer as he sighed and walked up the dusty, worn trail towards the barn. The paint, which once was vibrant red had dulled to rust where the paint had not yet freed it's self from the side, leaving chunks of exposed rough wood that he rain his hands along. The man braced his back against the worn but sturdy structure and slowly sank until his knees could take no more and he crumpled against the barn. The sun beat warm against the old man's skin which had thinned as the years raced by him. And in that moment he drifted off to sleep. | |
... | |
How long had he been out? One hour? Two? It was not yet dusk but the cicatas had begun to roar. |
tacos are a category of food that are relatively small in size and are served on a open platform of thin carbohydrate filled material. things that make you want to sleep after eating or are sealed off when served are not tacos (see instead: burritos, pizza)
- dosa
- roti
- peking duck which is usually served with mushu pancakes
- gua bao
- smørbrød
- lefse
- [falafel and pita](http://www.feastingathome.com/2013/06/falafels-wit
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
// Grab the EventEmitter constructor. events is a core node module. | |
var Emitter = require('events').EventEmitter; | |
// Our internal function will generate random numbers | |
function randomInt(limit) { | |
return Math.ceil( Math.random() * limit ); | |
} | |
module.exports = function(limit) { | |
if(!(limit && limit > 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
<!DOCTYPE html><!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7"><![endif]--><!--[if IE 7]><html class="no-js lt-ie9 lt-ie8"><![endif]--><!--[if IE 8]><html class="no-js lt-ie9"><![endif]--><!--[if gt IE 8]><!--> | |
<html class="no-js" lang="en"><!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> | |
<title>Example Jade Template</title> | |
<script src="/_assets/js/modernizr-2.6.2.min.js"></script> | |
</head> | |
<body> | |
<h1>Example Jade Template</h1> |
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 node | |
var picsPath = process.env['HOME'] + '/.gitshots/'; | |
var imagesnap = require('imagesnap'); | |
var fs = require('fs'); | |
var path = require('path'); | |
var commitPath = picsPath + new Date().getTime(); | |
fs.mkdirParent = function(dirPath, mode, callback) { | |
fs.mkdir(dirPath, mode, function(error) { |
NewerOlder