Pear for 1.4, mage for 1.5. File downloaded into /downloader/.cache/community/
./pear download magento-community/Shipping_Agent
./mage download community Shipping_Agent
| /** | |
| * @brief Splits an address string containing a street, number and number addition | |
| * | |
| * @param $streetStr string An address string containing a street, number (optional) and number addition (optional) | |
| * | |
| * @return array Data array with the following keys: street, number and numberAddition. | |
| */ | |
| private function split_street($streetStr) { | |
| $aMatch = array(); |
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
| @import "compass/utilities/sprites/base"; | |
| // General Sprite Defaults | |
| // You can override them before you import this file. | |
| $emblem-sprite-base-class: ".emblem-sprite" !default; | |
| $emblem-sprite-dimensions: false !default; | |
| $emblem-position: 0% !default; | |
| $emblem-spacing: 0 !default; | |
| $emblem-repeat: no-repeat !default; |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| <?php | |
| // Originally by Andrew Moore | |
| // Src: http://stackoverflow.com/questions/4795385/how-do-you-use-bcrypt-for-hashing-passwords-in-php/6337021#6337021 | |
| // | |
| // Heavily modified by Robert Kosek, from data at php.net/crypt | |
| class Bcrypt { | |
| private $rounds; | |
| private $prefix; |
| // enable template hints in admin | |
| INSERT INTO core_config_data (scope, scope_id, path, value) | |
| VALUES ('default', 0, 'dev/debug/template_hints', 1), | |
| ('default', 0, 'dev/debug/template_hints_blocks', 1); |
| /** | |
| * Uncamelize a string, joining the words by separator character. | |
| * @param string Text to uncamelize | |
| * @param string Word separator | |
| * @return string Uncamelized text | |
| */ | |
| function uncamelize(text, separator) { | |
| // Assume separator is _ if no one has been provided. | |
| if(typeof(separator) == "undefined") { |