Skip to content

Instantly share code, notes, and snippets.


Andrew Crookston acrookston

View GitHub Profile
View .gemrc
gem: --no-ri --no-rdoc
benchmark: false
verbose: true
update_sources: true
backtrace: true
acrookston / scroll.js
Created May 17, 2012 — forked from arnorhs/scroll.js
Small scrolling script for fun. Not sure how well it works. Please contribute if you have ideas.
View scroll.js
// muhaha.. changed all the code
// maybe this version handles scrolling to the bottom edge of a document a little better
// still not satisfied with the speed variable.. should that be higher == more speed, perhaps? or pixels per second?
// sorry about the opinionated style changes
Scrolling = {
smoothScrollTo: function(target_top) {
// ensure that we never scroll further than viewport size from bottom of the doc
target_top = Math.min(target_top, Math.max($(document).height(), $(window).height()) - $(window).height());
var speed = 30,
View pngout.rb
require 'formula'
class Pngout < Formula
url ''
homepage ''
md5 'ce70a9d70e08b1920e5ac88d130d0eb9'
version '20110722'
def install
prefix.install Dir['*']