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 Zofe\Rapyd; | |
| /** | |
| * Class Router | |
| * the rapyd router, works "before" laravel router to check uri/query string | |
| * it set widgets status / actions. | |
| * | |
| * @package Zofe\Rapyd | |
| * | |
| * @method public static get($uri=null, $query=null, Array $route) |
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 Tacone\Coffee\Collection; | |
| use Illuminate\Support\Collection; | |
| use Tacone\Coffee\Field\Field; | |
| class FieldCollection extends Collection | |
| { |
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 react = require('gulp-react'); | |
| var browserify = require('gulp-browserify'); | |
| var uglify = require('gulp-uglify'); | |
| gulp.task('jsx', function () { | |
| return gulp.src('./src/**/*.jsx') | |
| .pipe(react({harmony: true})) | |
| .pipe(browserify({insertGlobals : true})) | |
| .pipe(uglify()) |
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
| @servers(['web' => '[email protected]', 'local'=>'localhost']) | |
| @task('commit', ['on'=>'local']) | |
| git add . | |
| git commit -m "auto" | |
| git push origin master | |
| @endtask | |
| @task('pull', ['on'=>'web']) | |
| cd /my/remote/host/public_html |
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 | |
| /** | |
| * usage in a controlller: | |
| * public function index($page=1) { | |
| * $users = User::paginateUri(5, $page, $links); | |
| * return view('users', compact('users','links')); | |
| * } | |
| * it also support variable number of parameters, | |
| * routes must be defined using {page} or {page?} placeholders |
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
| <remote> | |
| <div id="pjax-{ opts.id }"></div> | |
| <script> | |
| this.on('mount', function(){ | |
| $.get( opts.remote, function( data ) { | |
| $( '#pjax-'+opts.id).html( data ); | |
| }); | |
| $(document).on('submit', '#pjax-'+opts.id+' form', function(event) { | |
| $.pjax.submit(event, '#pjax-'+opts.id, {push: false, scrollTo: false}) | |
| }); |
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 | |
| $response = \Cache::remember('mia_chiave', env('CACHE_EXPIRE'), function() { | |
| return view('path.vista')->render(); | |
| }); | |
| return response($response,200); |
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
| @servers(['web' => '[email protected]', 'local'=>'localhost']) | |
| <?php | |
| $repo = 'public_html/stage/'; | |
| ?> | |
| @task('commit', ['on'=>'local']) | |
| git add . | |
| git commit -m "auto" | |
| git push origin master |
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\Services; | |
| use App\Helpers\Inliner; | |
| class Mailer { | |
| public static function send($view, $data, \Closure $callback) { |
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
| <object width="100%" height="100%" id="fp_05257577_api" name="fp_05257577_api" data="/site-assets/flowplayer/flowplayer-3.2.16.swf" type="application/x-shockwave-flash"><param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="flashvars" value="config={"clip":{"url":"/uploads/vetrine/00008933/video/sanitaria8.mp4","autoPlay":true},"playerId":"fp_05257577","playlist":[{"url":"/uploads/vetrine/00008933/video/sanitaria8.mp4","autoPlay":true}]}"></object> |