Skip to content

Instantly share code, notes, and snippets.

@tdjordan
tdjordan / 0_reuse_code.js
Created October 30, 2013 19:39
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#ifdef GL_ES
precision mediump float;
#endif
uniform float time;
varying vec2 surfacePosition;
const vec2 center = vec2(0.5, 0.5);
vec3 sc1(vec2 p, float ph1, float ph2, float ph3) {

How do I prompt for input in a Linux shell script?

Edit 2015-10-29: Adding readline's history capacity Depending on posix compliant: could work on poor system with generic shell environments bash specific: using so called bashisms and if you want simple in line question / answer (generic solutions) pretty formated interfaces, like ncurses or more graphical using libgtk or libqt... use powerful readline history capability (new oct 2015)

@tdjordan
tdjordan / # llvm - 2016-07-21_11-36-03.txt
Created July 21, 2016 17:01
llvm on Mac OS X 10.11.6 - Homebrew build logs
Homebrew build logs for llvm on Mac OS X 10.11.6
Build date: 2016-07-21 11:36:03