Giter VIP home page Giter VIP logo

maf_snippets's Introduction

maf_snippets

A collection of Metrological Application Framework snippets for SublimeText

How To Use

  • clone this repository in your SublimeText User folder whose location varies depending on your OS:
    • Mac OS: ~/Library/Application Support/Sublime Text 2 or 3/Packages/User
    • Windows: User\AppData\Roaming\Sublime Text 2 or 3\Packages\User
  • enter one of the snippets below anywhere in your .js file, press the Tab key on your keyboard and be efficient!

Available snippets

MAF-specific snippets:

  • mafhgrid - creates horizontal MAF.element.Grid instance
  • mafvgrid - creates vertical MAF.element.Grid instance
  • mafsub - shorthand for the function.subscribeTo clause
  • mafunsubscribe - shorthand for the function.unsubscribe clause
  • mafthemeset - shorthand for Theme.set clause
  • maftextbtn - creates MAF.control.TextButton instance
  • maftext - creates MAF.element.Text instance
  • maftabs - creates MAF.control.TabStrip instance
  • mafrequest - sends MAF.Request
  • maflocal - shorthand for $_(“localizationKey”)
  • mafloading - shorthand for MAF.utility.WaitIndicator.up()
  • mafloaded - shorthand for MAF.utility.WaitIndicator.down()
  • mafimg - creates MAF.element.Image instance
  • mafcontainer - creates MAF.element.Container instance
  • maffire - shorthand for the object.fire clause
  • mafst - shorthand for "style: { }"
  • mafstyle - shorthand for new style for MAF Themes
  • mafevh - shorthand for empty EVent Handler function with single event argument
  • mafcn - shorthand for the ClassName property
  • mafvo - shorthand for vOffset property
  • mafho - shorthand for hOffset property
  • maflbl - shorthand for the label property (with localization-friendly value)
  • mafmesfet - shorthand for MAF.messages.fetch(key_to_fetch)
  • mafmessto - shorthand for MAF.messages.store(key_to_store, value)
  • mafmesrem - shorthand for MAF.messages.remove(key_to_remove)
  • mafslider - shorthand for MAF.SliderCarousel
  • mafview - shorthand for empty view
  • mafapi - shorthand for empty API class

Generic JS snippets:

  • iffy - creates Immediately-Invoked Function Expression (IFFY)
  • unif - creates if clause for checking whether typeof is undefined
  • un - "undefined"
  • clv - shorthand for the console.log directive with message and variable
  • cl - shorthand for the console.log directive

maf_snippets's People

Contributors

tricho340 avatar

Stargazers

Ralf Brandenstein avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.