Skip to content

Instantly share code, notes, and snippets.

View crodrigues's full-sized avatar

Carlos Rodrigues crodrigues

View GitHub Profile
Since I was looking all around how to uninstall packages and after reading tones
of documentations here's the short how-to uninstall a workbench package in Laravel
(or how I managed it to work out):
1. Remove package service provider from 'providers' array in app/config/app.php
2. Remove the package folder in workbench/
3. Run:
@crodrigues
crodrigues / Mage_Eav_Model_Entity_Collection_Abstract::addAttributeToFilter.txt
Last active July 29, 2016 20:35
Extend functionality of Mage_Eav_Model_Entity_Collection_Abstract::addAttributeToFilter
/**
* Add attribute filter to collection (extended)
*
* If $attribute is an array with following format, each condition will be
* separated by an OR, unless specified with a third 'and' property set to true:
*
* array(
* array('attribute'=>'firstname', 'like'=>'test%'),
* array('attribute'=>'lastname', 'like'=>'test%'),
* )
Verifying my Blockstack ID is secured with the address 1GyJdvMW62URiiLkh1qrLtXKKDfRXABwJQ https://explorer.blockstack.org/address/1GyJdvMW62URiiLkh1qrLtXKKDfRXABwJQ
@crodrigues
crodrigues / habitat-spec.txt
Created December 14, 2017 19:29
Habitat, Programming Challenge
Task: create an application that imports the provided YAML config file (which containins Control parameters, Species parameters and Habitat Parameters) and then simulates the passage of time for each species in each habitat.
At the end of each run, provide the following data:
Species:
Habitat:
a) Average Population: x
b) Max Population: x
c) Overall Mortality Percentage: x%
d) Causes of Death: