Skip to content

Instantly share code, notes, and snippets.

import time
import png
from apng import APNG
from OpenGL.GL import *
import glfw
class APNGSprite:
def __init__(self, path, loop=True, layer_order=0, frame_interval_ms=100):
apng = APNG.open(path)
self.count = len(apng.frames)
@thinkerbot
thinkerbot / README.md
Created June 7, 2012 21:03
Find and remove old git branches

Description

Find and delete old git branches that are no longer needed.

Usage

Clone the repo and add to your path (just for ease of use):

@bmabey
bmabey / env.rb
Created June 4, 2009 01:09
how to get spork working for cucumber in a rails app
require 'rubygems'
require 'spork'
Spork.prefork do
# Sets up the Rails environment for Cucumber
ENV["RAILS_ENV"] ||= "cucumber"
require File.expand_path(File.dirname(__FILE__) + '/../../config/environment')
require 'webrat'