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:
' returns the index of obj in array. obj can be anything. Returns -1 if not found. | |
Function inArray(arr, obj) | |
On Error Resume Next | |
Dim x: x = -1 | |
If isArray(arr) Then | |
For i = 0 To UBound(arr) | |
If arr(i) = obj Then | |
x = i | |
Exit For |
Pragma: akamai-x-cache-on, akamai-x-cache-remote-on, akamai-x-check-cacheable, akamai-x-get-cache-key, akamai-x-get-extracted-values, akamai-x-get-nonces, akamai-x-get-ssl-client-session-id, akamai-x-get-true-cache-key, akamai-x-serial-no |
// Named constants with unique integer values | |
var C = {}; | |
// Tokenizer States | |
var START = C.START = 0x11; | |
var TRUE1 = C.TRUE1 = 0x21; | |
var TRUE2 = C.TRUE2 = 0x22; | |
var TRUE3 = C.TRUE3 = 0x23; | |
var FALSE1 = C.FALSE1 = 0x31; | |
var FALSE2 = C.FALSE2 = 0x32; | |
var FALSE3 = C.FALSE3 = 0x33; |
A timeline of the last four years of detecting good old window.localStorage
.
October 2009: 5059daa
download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
#!/bin/bash | |
# downloads latest version of an artifact from artifactory | |
set -e | |
usage(){ | |
echo "Usage: $*" >&2 | |
exit 64 | |
} |
import { Component } from "React"; | |
export var Enhance = ComposedComponent => class extends Component { | |
constructor() { | |
this.state = { data: null }; | |
} | |
componentDidMount() { | |
this.setState({ data: 'Hello' }); | |
} | |
render() { |
#!/usr/bin/env stack | |
-- stack --resolver lts-7.9 --install-ghc script --package QuickCheck --package either --package parsec | |
module Roman where | |
import Control.Applicative hiding ((<|>)) | |
import Data.Either.Combinators | |
import Text.Parsec.Prim | |
import Text.Parsec.Combinator | |
import Text.Parsec.Error |