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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# To use this script and prepare your build environment, run the following | |
# command in the same directory as the Vagrantfile. | |
# B2G_PATH={path to your B2G directory} vagrant up | |
VAGRANTFILE_API_VERSION = "2" | |
# This script will be run on the first start and it will set up the build |
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
// Invert the color spectrum | |
Surface::Iter iter(newSurface.getIter()); | |
while(iter.line()) { | |
while(iter.pixel()) { | |
iter.r() = 255 - iter.r(); | |
iter.g() = 255 - iter.g(); | |
iter.b() = 255 - iter.b(); | |
} | |
} |
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
RewriteEngine on | |
RewriteCond $1 !^(index\.php) | |
RewriteRule ^(.*)$ index.php/$1 [L] |