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
totalprice=0 | |
totalitemcount=0 | |
laborcharge=0 | |
discount= 0 | |
totalgccount=0 |
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
%%{ | |
machine rfc2822_header; | |
action mark { | |
@pos = p | |
} | |
action domain { | |
# We have to match 'foo . bar' per the tests and transform it into 'foo.bar' | |
@parts[:host] = data[@pos..p-1].delete(" ") |
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 | |
apt-get update | |
apt-get install -y build-essential libssl-dev libncurses5-dev libreadline5-dev zlib1g-dev linux-headers-generic libsqlite3-dev | |
cd /tmp | |
wget http://repo.webbynode.com/ruby-1.9.2-p290_i386.deb | |
dpkg -i ruby-1.9.2-p290_i386.deb | |
rm ruby-1.9.2-p290_i386.deb |
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
<?php | |
/** | |
* The Inflector transforms words from singular to plural, class names to table names, modularized class names to ones without, and class names to foreign keys. | |
* This solution is partitionaly based on Ruby on Rails ActiveSupport::Inflector (c) David Heinemeier Hansson. (http://rubyonrails.org), MIT license | |
* @see http://api.rubyonrails.org/classes/Inflector.html | |
* | |
* @author Roman Sklenář | |
* @copyright Copyright (c) 2009 Roman Sklenář (http://romansklenar.cz) |