This file contains 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
function invert_color(color) { | |
color = color.replace('#', ''); | |
r = color.substr(0,2); | |
g = color.substr(2,2); | |
b = color.substr(4,2); | |
inverted_r = 255 - parseInt(r,16); | |
inverted_g = 255 - parseInt(g,16); | |
inverted_b = 255 - parseInt(b,16); |
This file contains 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
#!/bin/bash | |
RUBYGEMS_URL="http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz" | |
RUBYGEMS_FOLDER="rubygems-1.3.1" | |
RUBYGEMS_EXT="tgz" | |
apt-get update | |
apt-get install build-essential ruby ruby1.8-dev wget vim apache2 libopenssl-ruby apache2-prefork-dev rdoc git-core | |
apt-get install sqlite3 libsqlite3-dev | |
apt-get install imagemagick |
This file contains 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
// ----------------------------------------------------------------- | |
// A very simple jQuery slideshow. It requires a little more work | |
// on the part of the user, but this keeps the transition code tiny. | |
// ----------------------------------------------------------------- | |
// CSS | |
// ----------------------------------------------------------------- | |
#slideshow { width:200px; height:200px; } | |
.hidden { display:none; } | |
// ----------------------------------------------------------------- |
NewerOlder