| ⌘T | go to file |
| ⌘⌃P | go to project |
| ⌘R | go to methods |
| ⌃G | go to line |
| ⌘KB | toggle side bar |
| ⌘⇧P | command prompt |
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 | |
| // Disable libxml errors and allow user to fetch error information as needed | |
| libxml_use_internal_errors(true); | |
| class PSN_friends | |
| { | |
| public $log_file, $session, $frineds; | |
| function __construct() | |
| { |
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 | |
| /** | |
| * Return the value for a key in an array or a property in an object. | |
| * @param mixed $haystack | |
| * @param string $needle | |
| * @param mixed $default_value The value if key could not be found. | |
| * @return mixed | |
| */ | |
| function get_key ($haystack, $needle, $default_value = '') | |
| { |
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 | |
| /** | |
| * Generate an encryption key for CodeIgniter. | |
| * http://codeigniter.com/user_guide/libraries/encryption.html | |
| */ | |
| // http://www.itnewb.com/v/Generating-Session-IDs-and-Random-Passwords-with-PHP | |
| function generate_token ($len = 32) | |
| { |
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
Show hidden characters
| [ | |
| { | |
| "args": null, | |
| "command": "select_all" | |
| }, | |
| { | |
| "args": { | |
| "setting": "tab_size", | |
| "value": 2 | |
| }, |
Did I hear you wanted AJAX charts instead of hard coded? You got it.
Follow this guide to integrate bar chart reports into your Laravel application with AJAX. Reports like the following come with this guide:
- Total number of Orders by day
- Total number of Users subscribed by day
- etc
The library used for the charts is: http://www.oesmith.co.uk/morris.js/
Follow this guide to integrate bar chart reports into your Laravel application. Reports like the following come with this guide:
- Total number of Orders by day
- Total number of Users subscribed by day
- etc
The library used for the charts is: http://www.oesmith.co.uk/morris.js/
First put this into your page that will have the reports (in the Blade view) to include Morris library:
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() { | |
| "use strict"; | |
| // once cached, the css file is stored on the client forever unless | |
| // the URL below is changed. Any change will invalidate the cache | |
| var css_href = './index_files/web-fonts.css'; | |
| // a simple event handler wrapper | |
| function on(el, ev, callback) { | |
| if (el.addEventListener) { |
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 Acme\Html; | |
| use Illuminate\Html\FormBuilder as IlluminateFormBuilder; | |
| class FormBuilder extends IlluminateFormBuilder { | |
| /** | |
| * An array containing the currently opened form groups. |
Ubuntu 14.04+ 32bit (ubuntu-mate.org)
Simple steps for installing required tools after fresh Ubuntu install.
Or use installer and uninstaller scripts, they won't break anythng!!
- Licensed Sublime Text 3 (build 3065)
- Nginx 1.6.2 (stable version)
- PHP 5.6.3 (stable version)
- NVM v0.20.0 (for Node.js and NPM)