Skip to content

Instantly share code, notes, and snippets.

@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active June 29, 2024 15:54
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
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/
@rauchg
rauchg / README.md
Last active January 6, 2024 07:19
require-from-twitter
@halilim
halilim / zsh-debug-startup.sh
Created August 21, 2014 14:13
List zsh startup scripts line by line verbosely
zsh -x 2>&1
@LeCoupa
LeCoupa / nodejs-cheatsheet.js
Last active June 30, 2024 04:14
Complete Node.js CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
/* *******************************************************************************************
* THE UPDATED VERSION IS AVAILABLE AT
* https://github.com/LeCoupa/awesome-cheatsheets
* ******************************************************************************************* */
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@ruzz311
ruzz311 / turnip-farmer.txt
Last active June 30, 2016 20:53
The story of the turnip farmer. Weird things are written in the middle of a hackathon. (originally ~ June 2013)
"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.
@max-mapper
max-mapper / readme.md
Last active May 28, 2021 17:35
list of things that are like tacos
@polotek
polotek / event_emitter_example.js
Last active December 17, 2015 22:59
Simple example of a node event emitter
// 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)) {
@simshanith
simshanith / example.dev.html
Last active December 16, 2015 15:29
Building dev & production HTML with Jade & Grunt.
<!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>
@joelongstreet
joelongstreet / BeautifulFaces.js
Created February 27, 2013 22:01
Drop this script into your git post-commit hook to take a picture of your face (or butt) every time you make a commit.
#!/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) {