ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Stack​Mob JS Snippets

by wyne ST2/ST3

StackMob JavaScript Snippets for Sublime Text Editor

Labels snippets

Details

  • 2013.04.23.17.49.14
  • github.​com
  • github.​com
  • 5 years ago
  • 2 hours ago
  • 5 years ago

Installs

  • Total 176
  • Win 95
  • OS X 53
  • Linux 28
May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14
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
OS X 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
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

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 or cd ~/.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()