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
javascript:(function () { | |
var ip_address = prompt('IP Address'); | |
var livereload = document.createElement('script'); | |
livereload.src = "http://" + ip_address + ":35729/livereload.js?ext=Chrome&extver=2.0.9"; | |
document.getElementsByTagName('head')[0].appendChild(livereload); | |
})(); |
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
<a href="#" data-model="Table" data-action="add_row" data-param="">Add row</a> | |
<a href="#" data-model="Table" data-action="delete_row" data-param='{"id": 1}'>Add row</a> | |
<script> | |
var Table = { | |
add_row: function (self, params) { | |
console.error('adding_row'); | |
}, |
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 | |
// model | |
public function paginate($page = 1, $order = [], $limit = 10) | |
{ | |
// default values | |
$order = ($order) ?: []; | |
$limit = ($limit) ?: 10; | |
$query = $this->product->take($limit); |
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 Object | |
{ | |
public static function property($object, $property) | |
{ | |
if (! property_exists($object, $property)) { | |
return null; | |
} |
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
var gulp = require('gulp'); | |
var stylus = require('gulp-stylus'); | |
var jade = require('gulp-jade'); | |
var jeet = require('jeet'); | |
var rupture = require('rupture') | |
var path = { | |
views: './app/*.jade', | |
styles: './app/stylus/*.styl' | |
}; |
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
* { | |
font-family: 'Operator Mono', 'Inconsolata-dz for Powerline', 'Fira Code', Monaco !important; | |
} | |
html { | |
background: rgb(12, 26, 33); | |
color: rgba(200, 169, 111, 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
component(name) { | |
.{name} { | |
{block} | |
} | |
} | |
part(name) { | |
&__{name} { | |
{block} |
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 App; | |
use ReflectionClass; | |
trait RecordsActivity | |
{ | |
public static $_recordableEvents; |
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 | |
/* | |
|-------------------------------------------------------------------------- | |
| Application Routes | |
|-------------------------------------------------------------------------- | |
| | |
| Here is where you can register all of the routes for an application. | |
| It's a breeze. Simply tell Laravel the URIs it should respond to | |
| and give it the controller to call when that URI is requested. |
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 Mock | |
{ | |
/** | |
* Full path of the class name to mock. | |
* | |
* @var string | |
*/ | |
protected $class; |