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
| composer create-project slim/slim-skeleton slim | |
| composer create-project cakephp/app cakephp | |
| composer create-project laravel/laravel laravel | |
| composer create-project laravel/lumen lumen | |
| composer create-project pagekit/pagekit pagekit |
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
| ;(function($, win){ | |
| win.Assets = { | |
| _ress: {}, | |
| require: function(ress, callback, failcallback) { | |
| var req = [], | |
| ress = $.isArray(ress) ? ress:[ress]; |
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 | |
| /* | |
| * Converts CSV to JSON | |
| * Example uses Google Spreadsheet CSV feed | |
| * csvToArray function I think I found on php.net | |
| */ | |
| header('Content-type: application/json'); | |
| // Set your CSV feed |
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 | |
| // get constants defined by the application | |
| // All constants available | |
| $constants = get_defined_constants(TRUE); | |
| // just constants from the app in question | |
| $app_constants = $constants['user']; | |
| echo '<pre>'; |
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 | |
| /** | |
| * Description of VideoStream | |
| * | |
| * @author Rana | |
| * @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial | |
| */ | |
| class VideoStream | |
| { | |
| private $path = ""; |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title></title> | |
| <link rel="stylesheet" href="../libs/mocha.css" type="text/css" media="screen" title="no title" charset="utf-8"> | |
| </head> | |
| <body> | |
| <div id="mocha"></div> | |
| <script src="../libs/mocha.js" type="text/javascript" charset="utf-8"></script> |
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
| /**********************************************/ | |
| /* | |
| /* | |
| /* Crate -- Theme for Chrome DevTools | |
| /* Last Update :: September 2013 | |
| /* | |
| /* based on: | |
| /* mnml by Michael P. Pfeiffer | |
| /* Based on a Gist by Ben Truyman. Further attr: | |
| /* https://gist.github.com/3040634 |
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 | |
| /* | |
| * Mysql database class - only one connection alowed | |
| */ | |
| class Database { | |
| private $_connection; | |
| private static $_instance; //The single instance | |
| private $_host = "HOSTt"; | |
| private $_username = "USERNAME"; | |
| private $_password = "PASSWORd"; |
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 elixir = require('laravel-elixir'); | |
| var gutil = require('gulp-util'); | |
| // If 'gulp watch' is run | |
| if (gutil.env._.indexOf('watch') > -1) { | |
| // Enable watchify for faster builds | |
| elixir.config.js.browserify.watchify.enabled = true |
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
| #!/usr/bin/php | |
| <?php | |
| /* | |
| ########################################################################## | |
| # PHP Benchmark Performance Script # | |
| # © 2010 Code24 BV # | |
| # # | |
| # Author : Alessandro Torrisi # | |
| # Author : Sergey Dryabzhinsky # | |
| # Company : Code24 BV, The Netherlands # |
OlderNewer