A declarative visual state transition manager.
var { VisualStateComponent, VisualState, ColorAnimation } = require('vsm');
/** | |
### Regular component require statement | |
``` | |
const Token = require('v2/core/components/tokenizer/token'); | |
-> import Token from 'v2/core/components/tokenizer/token'; | |
``` | |
### Destructured require statement | |
``` |
/** | |
* Touchable Highlight example (that fires invariant as expected) | |
*/ | |
'use strict'; | |
var React = require('react-native'); | |
var { | |
AppRegistry, | |
StyleSheet, | |
Text, |
var dispatcher = require('./dispatcher'); | |
/** @class Store */ | |
var Store = Backbone.Collection.extend(/** @lends Store.prototype */ { | |
/** | |
* Instantiate a new store from the passed in models and options. Will attempt to load models | |
* from `getInitialData` if none are passed in. | |
* | |
* @constructor |
// To run with node: npm install lodash && node perms.js star | |
var _ = require('lodash'), | |
words = ['stars']; | |
function getPermutations(word) { | |
// Stop case for single character | |
if (word.length === 1) { | |
return [word]; | |
} |
// Playground - noun: a place where people can play | |
import Cocoa | |
// Base class for parameters to POST to service | |
class APIParams { | |
func getData() -> Dictionary<String, AnyObject> { | |
return Dictionary<String, AnyObject>() | |
} | |
} |
var sinon = require('sinon'), | |
Widget = require('../../widget'); | |
describe('My widget', function () { | |
var sandbox; | |
beforeEach(function () { | |
// Create a sandbox for the test | |
sandbox = sinon.sandbox.create(); | |
}); |
import { hello } from 'test1'; | |
export var things = { | |
'1': 0, | |
'2': 0, | |
'3': 0, | |
updateThing: function (name, val) { | |
this[name] = val; |
import { $ } from 'vendor/libraries'; | |
var foo = { | |
something: true | |
}; | |
export default { foo: foo, bar: true }; |
Download and install the git-at-me module and run the wizard function.
npm install git-at-me
echo "require('git-at-me').wizard();" >> git-wizard.js
node git-wizard.js