Skip to content

Instantly share code, notes, and snippets.

View lroggendorff's full-sized avatar

Lance Roggendorff lroggendorff

View GitHub Profile
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active May 2, 2024 05:55
OS X Screencast to animated GIF

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:

@tlberglund
tlberglund / git-loglive
Last active January 12, 2024 03:40
Log Live Git Command
#!/bin/bash
while :
do
clear
git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $*
sleep 1
done
@dmolsen
dmolsen / gist:1570854
Created January 6, 2012 14:35
MQSugr Demo Page Code Just Using Default Modernizr.load
// this code WON'T be run again with resize or orientationchange
// to start the snowflakes
var oncomplete = function() { snowflakes = new Snowflakes('container','snowflakesContainer'); snowflakes.create(40); };
// set-up breakpoints
Modernizr.load([
{ test: Modernizr.mq('only screen and (min-width: 320px)'), yep: 'css/320.css' },
{ test: Modernizr.mq('only screen and (min-width: 600px)'), yep: 'css/600.css' },
{ test: Modernizr.mq('only screen and (min-width: 600px)') && Modernizr.indexeddb, yep: 'css/600.indexeddb.css' },
@mjangda
mjangda / jqtouch.html
Created February 23, 2010 05:08
How to load jQTouch to a different div than the main one
<script type="text/javascript">
// Save the hash the user loaded the page with
var page = (location.hash) ? location.hash : '';
// When you instantiate the jQTouch object, it will revert the hash to the top div on the page or the div with class="current"
$jQT = new $.jQTouch({
icon: 'jqtouch.png',
statusBar: 'black-translucent',
preloadImages: [
'themes/jqt/img/chevron_white.png',