Here is a list of scopes to use in Sublime Text 2/3 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
| #!/usr/bin/env bash | |
| # | |
| # Usage: dev_signed_cert.sh HOSTNAME | |
| # | |
| # Creates a CA cert and then generates an SSL certificate signed by that CA for the | |
| # given hostname. | |
| # | |
| # After running this, add the generated dev_cert_ca.cert.pem to the trusted root | |
| # authorities in your browser / client system. | |
| # |
| ng.probe(getAllAngularRootElements()[0]).injector.view.root.ngModule._providers |
Here is a list of scopes to use in Sublime Text 2/3 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
| function memoize(fn) { | |
| const cachedArg; | |
| const cachedResult; | |
| return function(arg) { | |
| if (cachedArg === arg) { | |
| return cachedResult; | |
| } | |
| cachedArg = arg; | |
| cachedResult = fn(arg); | |
| return cachedResult; |
| { | |
| "keys": ["tab"], | |
| "command": "expand_abbreviation_by_tab", | |
| // put comma-separated syntax selectors for which | |
| // you want to expandEmmet abbreviations into "operand" key | |
| // instead of SCOPE_SELECTOR. | |
| // Examples: source.js, text.html - source | |
| "context": [ | |
| { |
These rules are adopted from the AngularJS commit conventions.
##Sass Functions Cheat Sheet
| var Stars = function (props) { | |
| var { | |
| idx = 0, // the index of this instance, as we only need to genenerate the <map> once! | |
| rating = 0, // rating from 0 to 5, inclusive, in increments of 0.5 | |
| color = "#f6b85c", // the fill color | |
| label = null // a label to describe the contents (for accessibility) | |
| } = props; | |
| var step = 18; | |
| var scale = 0.13; |
| Test file |
| /*! normalize.css v2.1.2 | MIT License | git.io/normalize */ | |
| /* ========================================================================== | |
| HTML5 display definitions | |
| ========================================================================== */ | |
| /** | |
| * Correct `block` display not defined in IE 8/9. | |
| */ |