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
<?xml version="1.0"?> | |
<config> | |
<global> | |
<models> | |
<core> | |
<rewrite> | |
<translate>TJU_Core_Model_Translate</translate> | |
</rewrite> | |
</core> | |
</models> |
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 | |
// Tinycarts_Debug_Firephp usage example | |
Tinycarts_Debug_Firephp::send($this->debug(), 'Product view page aka view.phtml VAR: $this'); | |
Tinycarts_Debug_Firephp::send($_product->debug(), 'Product view page aka view.phtml VAR: $_product'); |
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 | |
$this->widgetSchema['captcha'] = new sfWidgetFormReCaptcha2(array( | |
'public_key' => sfConfig::get('app_recaptcha_public_key') | |
)); |
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
<config> | |
<modules> | |
<TJU_Core> | |
<active>true</active> | |
<codePool>local</codePool> | |
</TJU_Core> | |
</modules> | |
</config> |
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/sh | |
phone='(XXX) XXX-XXXX' | |
email='example@example.com' | |
basedir='app/design/frontend/tjuInterface/default' | |
find $basedir/locale/en_US/template/email/sales -type f -exec sed -i 's/alt="Magento"/alt="{{var order.getStoreGroupName()}}"/g' '{}' \; | |
find $basedir/locale/en_US/template/email/sales -type f -exec sed -i 's/Magento Demo Store/{{var order.getStoreGroupName()}} /g' '{}' \; | |
find $basedir/locale/en_US/template/email/sales -type f -exec sed -i 's/Demo Store/{{var order.getStoreGroupName()}} /g' '{}' \; | |
find $basedir/locale/en_US/template/email/sales -type f -exec sed -i "s/mailto:magento@varien.com/mailto:$email/g" '{}' \; | |
find $basedir/locale/en_US/template/email/sales -type f -exec sed -i "s/dummyemail@magentocommerce.com/$email/g" '{}' \; |
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 | |
class sfWidgetFormReCaptcha2 extends sfWidgetFormReCaptcha | |
{ | |
/** | |
* @see sfWidgetFormReCaptcha | |
*/ | |
public function render($name, $value = null, $attributes = array(), $errors = array()) | |
{ | |
$server = $this->getServerUrl(); |
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 use_javascript('http://api.recaptcha.net/js/recaptcha_ajax.js') ?> |
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 | |
/** | |
* Magento | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Open Software License (OSL 3.0) | |
* that is bundled with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/osl-3.0.php |
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
#!/usr/bin/perl -ln | |
# aspell wrapper to have spell checking simultaneously for Russian and English | |
# from http://powerman.name/config/vim.html | |
# put this code into ~/bin/aspell and make executable | |
BEGIN { | |
($OPT = " @ARGV ") =~ s/\s+-d\s+\w+//g; | |
$IS_APPEND = $OPT =~ /\s-a\s/; | |
@ARGV = ('-'); | |
umask 077; | |
open $R,"| /usr/bin/aspell $OPT -d russian --ignore-accents >/tmp/aspell_ru.$$"; |
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
## from libcloud.types import Provider | |
## from libcloud.providers import get_driver | |
require 'fog/types' | |
require 'fog/providers' | |
## EC2 = get_driver(Provider.EC2) | |
## Slicehost = get_driver(Provider.SLICEHOST) | |
## Rackspace = get_driver(Provider.RACKSPACE) | |
EC2 = Fog::Provider.new(:ec2) # syntax 1 |