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\Blog\Models; | |
| use Model; | |
| /** | |
| * DynamicModel Model | |
| */ | |
| class DynamicModel extends Model | |
| { |
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
| // | |
| // Converts code indentation from 2 spaces to 4 spaces | |
| // | |
| // For a hotkey, add to Preferences > Key Bindings - User: | |
| // | |
| // { "keys": ["ctrl+alt+i"], "command": "run_macro_file", "args": {"file": "res://Packages/User/ConvertTwoSpacesToFour.sublime-macro"} } | |
| // | |
| [ |
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
| WEBVTT | |
| 00:00:00.000 --> 00:00:04.748 | |
| (whooshing sound) | |
| 00:00:04.748 --> 00:00:06.300 | |
| Hello, friends | |
| 00:00:06.300 --> 00:00:08.640 | |
| Today I'm going to demonstrate how easy it is |
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
| /* | |
| * Example class | |
| * | |
| * Dependences: | |
| * - Some other plugin (filename.js) | |
| */ | |
| +function ($) { "use strict"; | |
| var ExampleClass = function () { |
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 | |
| /** | |
| * Increase memory limit if not already | |
| * @param $limit Amount in megabytes | |
| */ | |
| private function increaseMemoryLimit($limit = 512) | |
| { | |
| $limitBytes = $limit * 1048576; | |
| $currentLimit = trim(ini_get('memory_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
| /* | |
| * Example plugin | |
| * | |
| * Data attributes: | |
| * - data-control="example" - enables the plugin on an element | |
| * - data-option="value" - an option with a value | |
| * | |
| * JavaScript API: | |
| * $('a#someElement').myPlugin({ option: 'value' }) | |
| * |
NewerOlder