Skip to content

Instantly share code, notes, and snippets.

View Breefield's full-sized avatar

Bree Hoffman Breefield

View GitHub Profile
@Breefield
Breefield / Animation.js
Created June 18, 2011 00:29
JS Animation class
var Animator = function(a, b) {
var clear_frame = true;
var current_frame = 0;
var auto_repeat = true;
var refresh_ms = 30;
var callbacks = [];
initialize(a, b);
function initialize(canvas) {
var self = this;
@Breefield
Breefield / LICENSE.txt
Created May 25, 2011 07:25 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
has_attached_file :foreground,
:convert_options => {
:background_strip => :lambda {|s| ((s.from_side == 'right') ? '-gravity NorthEast ' : '') + '-crop 10x10000+0+0'}
}