Skip to content

Instantly share code, notes, and snippets.


Carlos Rodrigues crodrigues

View GitHub Profile
crodrigues / habitat-spec.txt
Created Dec 14, 2017
Habitat, Programming Challenge
View habitat-spec.txt
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:
a) Average Population: x
b) Max Population: x
c) Overall Mortality Percentage: x%
d) Causes of Death:
View gist:eebba0293a1203cde01ea14c93503c8c
Verifying my Blockstack ID is secured with the address 1GyJdvMW62URiiLkh1qrLtXKKDfRXABwJQ
crodrigues / Mage_Eav_Model_Entity_Collection_Abstract::addAttributeToFilter.txt
Last active Jul 29, 2016
Extend functionality of Mage_Eav_Model_Entity_Collection_Abstract::addAttributeToFilter
View Mage_Eav_Model_Entity_Collection_Abstract::addAttributeToFilter.txt
* 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%'),
* )
View uninstall-laravel-workbench-package
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:
You can’t perform that action at this time.