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
| <script runat="server"> | |
| Platform.Load("core", "1.1.1"); | |
| var subscriber = { | |
| SubscriberKey: "S_10001", | |
| "Attributes": { | |
| 'First Name': "Karmab", | |
| "Last Name": "Dorjeeb" | |
| }, | |
| "Lists": {"ID": 101} |
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
| Example code for exporting data in a table to a csv file. |
| (function() { | |
| var CSSCriticalPath = function(w, d, opts) { | |
| var opt = opts || {}; | |
| var css = {}; | |
| var pushCSS = function(r) { | |
| if(!!css[r.selectorText] === false) css[r.selectorText] = {}; | |
| var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/); | |
| for(var i = 0; i < styles.length; i++) { | |
| if(!!styles[i] === false) continue; | |
| var pair = styles[i].split(": "); |
| <div class="slider-wrap"> | |
| <div class="slider" id="slider"> | |
| <div class="holder"> | |
| <div class="slide" id="slide-0"><span class="temp">74°</span></div> | |
| <div class="slide" id="slide-1"><span class="temp">64°</span></div> | |
| <div class="slide" id="slide-2"><span class="temp">82°</span></div> | |
| </div> | |
| </div> | |
| <nav class="slider-nav"> | |
| <a href="#slide-0" class="active">Slide 0</a> |
| /* ============================================================================= | |
| CSS Declarations | |
| ========================================================================== */ | |
| /* ==|== The Standard Way =================================================== */ | |
| .foo::before { | |
| /* ...css rules... */ | |
| } |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2357277/hack.sh | sh | |
| # |