A declarative visual state transition manager.
var { VisualStateComponent, VisualState, ColorAnimation } = require('vsm');
import { hello } from 'test1'; | |
export var things = { | |
'1': 0, | |
'2': 0, | |
'3': 0, | |
updateThing: function (name, val) { | |
this[name] = val; |
// 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>() | |
} | |
} |
// 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]; | |
} |
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 |
using System; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Data; | |
using System.Windows.Input; | |
using GalaSoft.MvvmLight.Command; | |
public class ClickCommandTrigger : System.Windows.Interactivity.EventTriggerBase<Button> | |
{ | |
/// <summary> |
using System.Collections.ObjectModel; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System; | |
/// <summary> | |
/// A collection of checked items. | |
/// </summary> | |
/// <typeparam name="TItem">The type of the item.</typeparam> | |
public class CheckedItemCollection<TItem> : ObservableCollection<CheckedItemWrapper<TItem>> |
using System.IO; | |
using System.Windows; | |
using System.Windows.Input; | |
using System.Windows.Interactivity; | |
/// <summary> | |
/// A simple file drag and drop behavior. | |
/// </summary> | |
public class FileDragDropBehavior : DragDropBehavior<FileInfo[]> | |
{ |
using System.Windows.Controls; | |
using System.Windows.Data; | |
using System.Windows.Interactivity; | |
public class UpdateSourceOnTextChanged : Behavior<TextBox> | |
{ | |
BindingExpression textBinding; | |
protected override void OnAttached() | |
{ |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Interactivity; | |
public class BindableColumnHeader : Behavior<DataGridColumn> | |
{ | |
/// <summary> | |
/// The <see cref="Header" /> dependency property's name. | |
/// </summary> | |
public const string HeaderPropertyName = "Header"; |