Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| { | |
| "name": "project", | |
| "version": "0.0.0", | |
| "authors": [ | |
| "Eric Barnes <[email protected]>" | |
| ], | |
| "license": "MIT", | |
| "private": true, | |
| "ignore": [ | |
| "**/.*", |
| # Installation | |
| curl -o laravel.phar http://laravel.com/laravel.phar | |
| chmod 755 laravel.phar | |
| mv laravel.phar /usr/local/bin/laravel | |
| # Usage | |
| laravel new <application_name> |
| # Rails Stuff | |
| alias stoprails='kill -9 $(lsof -i :3000 -t)' | |
| alias startrails='rails server -d' | |
| alias restartrails='stopRails && startRails' | |
| #Check PHP For Erroes | |
| alias phpcheck='find ./ -name \*.php | xargs -n 1 php -l' | |
| # ROT13-encode text. Works for decoding, too! ;) | |
| alias rot13='tr a-zA-Z n-za-mN-ZA-M' |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| public function get_short_created_at() | |
| { | |
| $date = $this->get_attribute('created_at'); | |
| if (is_string($date)){ | |
| $dateObject = DateTime::createFromFormat('Y-m-d H:i:s', $date); | |
| return $dateObject->format('Y-m-d'); | |
| } | |
| return $date; | |
| } |
| /* http://twitter.github.com/bootstrap/scaffolding.html#responsive */ | |
| /* Landscape phones and down */ | |
| @media (max-width: 480px) { ... } | |
| /* Landscape phone to portrait tablet */ | |
| @media (max-width: 768px) { ... } | |
| /* Portrait tablet to landscape and desktop */ | |
| @media (min-width: 768px) and (max-width: 940px) { ... } |
| <?php defined('SYSPATH') or die('No direct script access.'); | |
| /** | |
| * Template Controller | |
| * | |
| * @package Templates | |
| * @author Sergei Gladkovskiy <[email protected]> | |
| */ | |
| abstract class Controller_Template extends Kohana_Controller_Template { |