StackMob JS Snippets
StackMob JavaScript Snippets for Sublime Text Editor
Labels snippets
Details
Installs
- Total 246
- Win 142
- Mac 72
- Linux 32
Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 1 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Sublime Snippets for StackMob JavaScript
This is a Sublime Text package which includes snippets for doing StackMob JavaScript development.
This is a work in progress and very new. Pull requests welcome.
Installation
1. Find Packages Directory
- Mac
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User
- Windows:
cd %APPDATA%\Sublime Text 2\Packages\User
- Linux:
cd ~/.Sublime\ Text\ 2/Packages
orcd ~/.config/sublime-text-2/Packages
- Portable: Sublime Text 2/Data/Packages
Can't find your packages? Open sublime and press ctrl + `
and type sublime.packages_path()
.
2. Download
$ git clone git@github.com:wyne/sublime-stackmob-js-snippets.git stackmob-js
Usage
In a javascript file or within a script tag in an html file, type sm
as the start to one of the triggers below.
Trigger | StackMob Method |
---|---|
smc | object.create() |
smn | var object = new Object({property: “value”}); |
sminit | StackMob.init() |
sms | object.save() |
smmodel | var Object = StackMob.Model.extend({ schemaName: “schema” }); |
smiuli | StackMob.isUserLoggedIn() |
smili | StackMob.isLoggedIn() |
smf | object.fetch() |
smfe | object.fetchExpanded() |
smcc | StackMob.customcode() |