This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
var object = function() { | |
var _privateVariable = 0; | |
function _privateFunction() { | |
alert('i am in a closure'); | |
} | |
function _privateFunctionTwo() { | |
alert('nothing outside the object created by this function can reach me.'); | |
_privateFunction(); |
import Control.Monad (when) | |
import Data.Bits ((.|.)) | |
import Foreign.C.String (withCString) | |
import Foreign.Marshal.Alloc (alloca) | |
import Foreign.Marshal.Array (withArray) | |
import Foreign.Ptr (nullPtr) | |
import Foreign.Storable (peek) | |
import Graphics.Rendering.OpenGL.Raw -- OpenGLRaw-1.3.0.0 | |
import Graphics.UI.GLFW -- GLFW-b-0.1.0.5 |
#!/usr/bin/env bash | |
cabal configure && cabal build && cabal haddock --hyperlink-source \ | |
--html-location='/package/$pkg-$version/docs' \ | |
--contents-location='/package/$pkg' | |
S=$? | |
if [ "${S}" -eq "0" ]; then | |
cd "dist/doc/html" | |
DDIR="${1}-${2}-docs" | |
cp -r "${1}" "${DDIR}" && tar -c -v -z --format=ustar -f "${DDIR}.tar.gz" "${DDIR}" | |
CS=$? |
Around 2006-2007, it was a bit of a fashion to hook lava lamps up to the build server. Normally, the green lava lamp would be on, but if the build failed, it would turn off and the red lava lamp would turn on.
By coincidence, I've actually met, about that time, (probably) the first person to hook up a lava lamp to a build server. It was Alberto Savoia, who'd founded a testing tools company (that did some very interesting things around generative testing that have basically never been noticed). Alberto had noticed that people did not react with any urgency when the build broke. They'd check in broken code and go off to something else, only reacting to the breakage they'd caused when some other programmer pulled the change and had problems.