Skip to content

Instantly share code, notes, and snippets.

@freakphp
freakphp / gist:5677314
Created May 30, 2013 11:48
Magento sql update with custom expresion
$resource = Mage::getSingleton('core/resource');
$adapter = $resource->getConnection('core_write');
$select = $adapter->select();
$select->setPart(
Zend_Db_Select::COLUMNS, array(
array(
null,
new Zend_Db_Expr('NOW()'),
'test'
)
@freakphp
freakphp / CmsPanel.js
Created May 8, 2012 09:54
HatimeriaAdminPanel tutorial
(function() {
Ext.define('HatimeriaAdmin.cms.CmsPanel', {
extend: 'Hatimeria.core.grid.BaseGrid',
requires: [
'HatimeriaAdmin.cms.store.CmsStore',
'HatimeriaAdmin.cms.window.CmsWindow'
],
transNS: 'cms',
translateAll: true,
@freakphp
freakphp / gist:2633031
Created May 8, 2012 06:32 — forked from rtomayko/gist:2601550
Open beautiful git-scm.com manual pages w/ git help -w
# The new git-scm.com site includes man pages designed for pleasant viewing in a web browser:
#
# http://git-scm.com/docs
#
# The commands below can be used to configure git to open these pages when
# using `git help -w <command>' from the command line. Just enter the config
# commands in your shell to modify your ~/.gitconfig file.
# Create a new browser command and configure help -w to use it.
git config --global browser.gitscm.cmd "/bin/sh -c 'open http://git-scm.com/docs/\$(basename \$1 .html)' --"