Skip to content

Instantly share code, notes, and snippets.

Avatar

Neil Aitken Demoli

View GitHub Profile
View gist:4692147
SKYWIRE.HomeSlider = (function () {
function setup() {
$('.home-slider').anythingSlider({
theme: 'minimalist-round',
buildStartStop: false,
easing: 'easeOutSine',
animationTime: 1400,
hashTags: false,
onInitialized: function (event, slider) {
@Demoli
Demoli / gist:3969965
Created Oct 28, 2012
Example route config
View gist:3969965
'router' => array(
'routes' => array(
'login' => array(
'type' => 'Literal',
'options' => array(
// Change this to something specific to your module
'route' => '/login',
'defaults' => array(
// Change this value to reflect the namespace in which
// the controllers for your module are found
View \app\code\community\Fooman\Speedster\Block\Page\Html\Head.php
Replace lines 84 - 85 with:
$skinUrl = $this->getSkinUrl($item['name']);
$joinDir = strpos($skinUrl, 'skin') !== false ? 'skin' : 'media';
$chunks=explode('/' . $joinDir, $this->getSkinUrl($item['name']),2);
$lines[$if]['stylesheet'][] = "/".$webroot.$joinDir.$chunks[1];
View gist:3294458
Mage::getModel('catalog/category')->addFieldToSelect('*')->load($categoryId);
@Demoli
Demoli / Data.php
Created Aug 8, 2012
Fix for admin config save bug
View Data.php
File: Mage_Adminhtml_Model_Config_Data
Line: 135
Change to:
$backendClass = is_object($fieldConfig) ? $fieldConfig->backend_model : false;
@Demoli
Demoli / dev_test.php
Created Mar 16, 2012 — forked from valguss/dev_test.php
Thoughts on best way to test subdomain
View dev_test.php
<?php
//faster using strpos
$staging_subdomains = array(
's1',
's2',
's3',
's4',
's5',
'mac',
'local',
@Demoli
Demoli / Abstract.php
Created Mar 9, 2012
Double dispatch error
View Abstract.php
abstract class Skywire_PressRelease_Test_Controller_Adminhtml_Abstract
extends EcomDev_PHPUnit_Test_Case_Controller
{
const FAKE_USER_ID = 999999999;
/**
* Login to the admin store
*
* @return null
*/