Skip to content

Instantly share code, notes, and snippets.

View sandermangel's full-sized avatar

Sander Mangel sandermangel

View GitHub Profile
  • Assume every meeting is a remote meeting.
  • Send meeting details well ahead of time.
  • Try to avoid calling in as a group, groups are harder to hear and talk amongst themselves
  • Speak English at all times.
  • Invest in proper audio
    • When hosting a group; teleconference microphones.
    • For callers sitting alone; use a proper headphone with mic
    • Mute when not speaking
  • Use a tool such as zoom.us, appear.in or hangouts
  • That has a web version that requires no installation.
@sandermangel
sandermangel / grumphp.yml
Created August 24, 2017 13:16
Byte - Better Magento code through a disciplined approach - grumphp configuration
parameters:
bin_dir: ./vendor/bin
git_dir: .
stop_on_failure: false
hide_circumvention_tip: true
ascii:
failed: ~
succeeded: ~
tasks:
phpmd:
@sandermangel
sandermangel / phpmd.xml
Created August 24, 2017 13:16
Byte - Better Magento code through a disciplined approach - phpmd configuration Magento 1
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="Magento 1 MD rules"
xmlns="http://pmd.sf.net/ruleset/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
<description/>
<rule ref="rulesets/codesize.xml/CyclomaticComplexity">
<properties>
@sandermangel
sandermangel / phpmd.xml
Created August 24, 2017 13:15
Byte - Better Magento code through a disciplined approach - phpmd configuration
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="PHP MD rules"
xmlns="http://pmd.sf.net/ruleset/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
<description/>
<rule ref="rulesets/codesize.xml"/>
<rule ref="rulesets/design.xml">

Keybase proof

I hereby claim:

  • I am sandermangel on github.
  • I am sandermangel (https://keybase.io/sandermangel) on keybase.
  • I have a public key whose fingerprint is 4862 4611 E7F7 7585 0740 15D9 8680 011E 9A87 C05A

To claim this, I am signing this object:

Verifying that +sandermangel is my blockchain ID. https://onename.com/sandermangel
@sandermangel
sandermangel / product image by id
Created July 7, 2015 12:30
Get resized product image without loading product
$image = Mage::getResourceModel('catalog/product')->getAttributeRawValue([product_id], 'thumbnail', [store_id]);
$product = new Mage_Catalog_Model_Product;
$imageUrl = (string)Mage::helper('catalog/image')->init($product, 'thumbnail', $image)->resize(100, 100);
@sandermangel
sandermangel / price.phtml without Weee
Last active November 13, 2018 15:13
The price.phtml template without all the Weee stuff
<?php
/**
* Updated price.phtml without WEEE
*
* NOTICE OF LICENSE
*
* This source file is subject to the MIT License
* It is available through the world-wide-web at this URL:
* http://opensource.org/licenses/mit-license.php
*
@sandermangel
sandermangel / product loop data save
Created November 13, 2014 08:18
[Magento] Save product data in a loop without loading the whole object
$collection = Mage::getModel('catalog/product')->getCollection()
->addAttributeToSelect('name');
foreach ($collectio as $product)
{
$product->setName("Here goes the name");
$product->getResource()->saveAttribute($product, 'name');
}