I hereby claim:
- I am fullybaked on github.
- I am fullybaked (https://keybase.io/fullybaked) on keybase.
- I have a public key whose fingerprint is 9919 C36F D1FD E4E5 CB0A E92F 8B05 EE06 F9EF 3B39
To claim this, I am signing this object:
| /* Test SCSS File */ | |
| /* Variables & Calculations */ | |
| $blue: #3bbfce; | |
| $margin: 16px; | |
| .content-navigation { | |
| border-color: $blue; | |
| color: | |
| darken($blue, 9%); |
| <? | |
| /** | |
| * Returns the breadcrumb trail as a sequence of »-separated links. | |
| * | |
| * @param string $separator Text to separate crumbs. | |
| * @param string $startText This will be the first crumb, if false it defaults to first crumb in array | |
| * @param mixed $startPath Url for the first link in the bread crumbs, can be a string or array | |
| * @param boolean $escape Escape the content of the link text, set to false if passing an image in | |
| * @return string Composed bread crumbs | |
| * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html#creating-breadcrumb-trails-with-htmlhelper |
| <?php | |
| /** | |
| * Component handles various types of file upload | |
| * | |
| * @author Dave Baker | |
| * @copyright Dave Baker / Fully Baked 2012 | |
| * @link www.fullybaked.co.uk | |
| */ | |
| class UploadComponent extends Component { |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| class Person extends AppModel | |
| { | |
| // must explicitly set the useTable so child classes | |
| // use this not the CakePHP conventions based on their | |
| // class name | |
| public $useTable = 'people'; | |
| // table people exists in the database with schema | |
| // id int(11) PK | |
| // type varchar(20) default 'contact' not null |
| <?php | |
| namespace Fullybaked; | |
| use FileNotFound; | |
| /** | |
| * File class | |
| * | |
| * Simple wrapper for native methods file_get_contents and file_put_contents | |
| * in an OOP context and with some useful methods for getting information about | |
| * a given File |
| <?php | |
| /** | |
| * This is a _very_ rough draft of an idea to create a composable field in a model | |
| * by which, the Model::find methods would return a value object rather plain data | |
| * for a given field. | |
| * | |
| * Value Objects would be created in the /Lib directory of the application | |
| * | |
| * This is a work in progress hence being a Gist. | |
| */ |
| select count(DISTINCT project_id), sum(amount), user_id | |
| from payments | |
| group by user_id | |
| order by sum(amount) desc; |
| <?php | |
| public function findByFullName($search_term) { | |
| $users->find() | |
| ->where(['CONCAT(UserProfiles.first_name, " ", UserProfiles.lastname)' => $search_term]); | |
| ->contain(self::$applicant_contain) | |
| ->order(['Users.primary_role' => 'DESC', 'Users.modified' => 'DESC']) | |
| ->limit(25); | |
| } |
| <?php | |
| // data controller | |
| public function get_data() | |
| { | |
| $data = [ | |
| 'item' => $this->getDataFromSomewhere(), | |
| 'min' => 0, | |
| 'max' => 10 | |
| ]; |