Skip to content

Instantly share code, notes, and snippets.

Avatar

J. Voigt joyrexus

View GitHub Profile
View GIF-Screencast-OSX.md

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@tmcw
tmcw / the_code_more.md
Created Jul 8, 2013
An unpublished blog post
View the_code_more.md

The compiled code - the listing of laws in their most-current state that we could simply call 'The Code', is actually constructed by contractors like Westlaw and LexisNexis, who maintain the technology to manage it and hire people to read PDF-formatted bills from the Council's website and manually edit sections of the law to keep it up to date.

As a result, this contractor keeps the only complete digital copy of the code.

That is, the DC government creates changesets, or diffs, of the code. The code is the

@shesek
shesek / callable.coffee
Last active Jan 14, 2019
Decorate constructor functions, and have them return a callable object that delegates to a `callable()` method when invoked.
View callable.coffee
##########
### Moved to https://github.com/shesek/callable-klass
##########
"use strict"
# without strict mode, `this` defaults to window, so `(this?obj)`
# would always return window.
callable = (ctor) ->
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active Oct 24, 2020
OS X Screencast to animated GIF
View GIF-Screencast-OSX.md

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

View leap.json
{
"hands": [
{
"direction": [
0.187837,
0.097272,
-0.976745
],
"id": 3,
"palmNormal": [
@dswwsd
dswwsd / mobile-meta-links.html
Created Nov 20, 2012
iOS Web App Configuration
View mobile-meta-links.html
@mbostock
mbostock / .block
Last active Jun 16, 2019
Creating Thumbnails with GraphicsMagick
View .block
license: gpl-3.0
@mbostock
mbostock / .block
Last active Jun 30, 2020
The Gist to Clone All Gists
View .block
license: gpl-3.0
@ryanflorence
ryanflorence / Base.coffee
Created Sep 9, 2012
Base CoffeeScript Class, surprisingly useful.
View Base.coffee
################################################################################
# script: Base.coffee
# author: Ryan Florence <rpflorence@gmail.com>
# license: MIT-Style License
#
# A surprisingly useful base class for CoffeeScript. Inspired by my old
# friend, MooTools Class. Provides default options, mixins, and custom events.
class Base
defaults: {}
@enjalot
enjalot / cors_server.py
Created Jun 10, 2012
Allow CORS with python simple http server
View cors_server.py
import SimpleHTTPServer
class CORSHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
def send_head(self):
"""Common code for GET and HEAD commands.
This sends the response code and MIME headers.
Return value is either a file object (which has to be copied
to the outputfile by the caller unless the command was HEAD,
and must be closed by the caller under all circumstances), or
You can’t perform that action at this time.