This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://docs.rubygems.org/read/chapter/11 | |
--- | |
gem: --no-ri --no-rdoc | |
benchmark: false | |
verbose: true | |
update_sources: true | |
sources: | |
- http://gems.rubyforge.org/ | |
- http://rubygems.org/ | |
backtrace: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Pngout < Formula | |
url 'http://static.jonof.id.au/dl/kenutils/pngout-20110722-darwin.tar.gz' | |
homepage 'http://www.jonof.id.au/kenutils' | |
md5 'ce70a9d70e08b1920e5ac88d130d0eb9' | |
version '20110722' | |
def install | |
prefix.install Dir['*'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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, |