This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class StatsdEventHandler { | |
| public function increment($metrics, $delta, $sampleRate, $event) | |
| { | |
| } | |
| public function subscribe($events) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| Route::group(array('prefix' => 'api/v1'), function() | |
| { | |
| // URL => api/v1/ | |
| Route::get('auth', function() { | |
| // URL => api/v1/auth | |
| }); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function processReset($token) | |
| { | |
| $credentials = array('email' => Input::get('email')); | |
| return Password::reset($credentials, function($user, $password) | |
| { | |
| $user->password = Hash::make($password); | |
| $user->save(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Exception | |
| SQLSTATE[42S22]: Column not found: 1054 Unknown column 'token' in 'where clause' (SQL: select * from `users` where `token` = ? and `email` = ? limit 1) (Bindings: array ( 0 => '', 1 => '', )) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| aran@Arans-MacBook-Pro ~/Sites/fyi/web ±develop » composer update | |
| PHP Fatal error: Call to undefined method Illuminate\Foundation\Application::redirectIfTrailingSlash() in /Users/aran/Sites/fyi/web/bootstrap/start.php on line 16 | |
| PHP Stack trace: | |
| PHP 1. {main}() /Users/aran/Sites/fyi/web/artisan:0 | |
| PHP 2. require_once() /Users/aran/Sites/fyi/web/artisan:30 | |
| Fatal error: Call to undefined method Illuminate\Foundation\Application::redirectIfTrailingSlash() in /Users/aran/Sites/fyi/web/bootstrap/start.php on line 16 | |
| Call Stack: | |
| 0.0002 233384 1. {main}() /Users/aran/Sites/fyi/web/artisan:0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if (perch_get('s')) { | |
| $post = array( | |
| 'filter' => 'slug', | |
| 'sort-order' => 'DESC', | |
| 'count' => 1, | |
| 'template' => 'blog/listing.html' | |
| ); | |
| } else { | |
| $post = array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $posts = DB::table('posts') | |
| ->join('image_post', 'posts.id', '=', 'image_post.post_id') | |
| ->join('images', 'image_post.image_id', '=', 'images.id') | |
| ->join('artist_post', 'posts.id', '=', 'artist_post.post_id') | |
| ->join('artists', 'artist_post.artist_id', '=', 'artists.id') | |
| ->where('posts.category', '!=', 'news') | |
| ->where('posts.status', '=', 'published') | |
| ->order_by('posts.created_at', 'desc') | |
| ->distinct() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <section class="featured"> | |
| <header class="featured__header"> | |
| <h1 class="featured__header__title">Venue of the week</h1> | |
| </header> | |
| </section> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php namespace PatrickMaciel; | |
| class BaseController extends \Controller { | |
| /** | |
| * Setup the layout used by the controller. | |
| * | |
| * @return void | |
| */ | |
| protected function setupLayout() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Basic Puppet manifest | |
| Exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ] } | |
| class system-update { | |
| file { "/etc/apt/sources.list.d/dotdeb.list": | |
| owner => root, | |
| group => root, | |
| mode => 664, |