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
| Find everything : ctrl+shift+A | |
| Find any file : ctrl+shift+N | |
| Select Code Block : Ctrl+W | |
| Go to declaration : Ctrl+ Mouse 1 | |
| Find next occurrence : Ctrl+G | |
| Find all occurrence : Ctrl+Alt+Shift+J | |
| Duplicate current line or selected block : Ctrl +D | |
| Delete line at caret : Ctrl + Y | |
| Reformat code : Ctrl + Alt + L | |
| Expand/collapse code block : Ctrl + NumPad +/- |
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 BatchesController extends \BaseController { | |
| /** | |
| * Display a listing of batches | |
| * | |
| * @return Response | |
| */ | |
| public function index() |
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
| $provide.provider('books', function () { | |
| this.$get = function(){ | |
| var appName = "Book Looger"; | |
| return { | |
| appName: appName | |
| }; | |
| } | |
| }); |
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 () { | |
| var app = angular.module('app', []); | |
| app.provider('books',function(){ | |
| this.$get = function(){ | |
| var appName = "BookLogger"; | |
| var version = '1.0'; |
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 factory (name, factoryFn, enforce) { | |
| return provider(name,{ | |
| $get : enforce !== false ? enforceReturnValue(name,factoryFn) : factoryFn | |
| }); | |
| } |
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 service (name, constructor) { | |
| return factory(name,['$injector', function ($injector) { | |
| return $injector.instantiate(constructor); | |
| }]); | |
| } |
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
| if (x) { | |
| let foo; | |
| let foo; // TypeError thrown. | |
| } |
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 do_something() { | |
| console.log(foo); // ReferenceError | |
| let foo = 2; | |
| } |
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 person = function(name){ | |
| name = name | "rat"; | |
| return name; | |
| } |
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 person = function(name = "rat"){ | |
| return name; | |
| } |
OlderNewer