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
| FancyZoomImageBehavior = Behavior.create({ | |
| initialize: function() { | |
| var src = this.element.readAttribute('href'); | |
| var div = $div($img({src: src})); | |
| document.body.insert({after: div}); | |
| this.element.writeAttribute('href', '#' + div.identify()); | |
| new FancyZoom(this.element); | |
| } | |
| }); |
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
| # Completion | |
| require 'irb/completion' | |
| # Benchmarking utility method | |
| def time(times = 1) | |
| require 'benchmark' | |
| ret = nil | |
| Benchmark.bm { |x| x.report { times.times { ret = yield } } } | |
| ret | |
| end |
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
| # Environment Variables | |
| export PS1="\u@\h:\w$ " | |
| export PATH=$HOME/bin:/opt/local/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/local/git/bin:$PATH | |
| export MANPATH=$MANPATH:/opt/local/share/man:/usr/local/git/man | |
| export INFOPATH=$INFOPATH:/opt/local/share/info | |
| export EDITOR=vi | |
| export CVS_RSH=ssh | |
| export DEPLOY_TO=staging | |
| # Aliases |
NewerOlder