This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var TodoPlayMaker = new PlayMaker({ | |
| name:'TodoPlayMaker', | |
| events: [ 'REMOVE_TODO', 'ADD_TODO' ] | |
| }); | |
| var UserPlayMaker = new PlayMaker({ | |
| name: 'UserPlayMaker', | |
| events: [ 'LOGOUT' ] | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var knox = require("knox") | |
| , conf = require("../conf") | |
| , http = require('http') | |
| , url = require('url') | |
| , gm = require('gm') | |
| , conf = require("../conf") | |
| , request = require("request") | |
| , imageMagick = gm.subClass({ imageMagick: true }) | |
| , imageHelper = require("./imageHelper") | |
| , fs = require("fs"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ( function( window, ko ) { | |
| var touchEvents = [ 'tap', 'doubletap', 'hold', 'rotate', | |
| 'drag', 'dragdown', 'dragup', 'dragleft', 'dragright', | |
| 'transform', 'transformstart', | |
| 'transformend', 'swipe', 'swipeleft', 'swiperight', | |
| 'swipeup', 'swipedown', 'pinch', 'pinchin', 'pinchout' | |
| ]; | |
| var makeMobileBindings = function( touchEventName ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var handlebars = require("handlebars"); | |
| global.__speak_config = { | |
| template: handlebars | |
| }; | |
| var Speak = require( "../../src/index" ), | |
| should = require( "should" ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Sitecore.Web.UI.Controls.Common.Texts | |
| { | |
| using System.Web.UI; | |
| using Sitecore.Diagnostics; | |
| using Sitecore.Mvc.Presentation; | |
| /// <summary> | |
| /// The type of text. | |
| /// </summary> | |
| public enum TextType |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| !function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.SPEAKevent=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | |
| /* jshint forin:false, loopfunc: true */ | |
| /** | |
| * This is a module extracted from the backboneJS source code | |
| * but works without Underscore and backbone | |
| */ | |
| var idCounter = 0; | |
| var _uniqueId = function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var divs = d3.select("#playground").append("svg") | |
| .attr("width", 200) | |
| .attr("height", 200) | |
| .selectAll("rect").data($data); | |
| // Your code here, or choose a preset from above | |
| var colorScale = d3.scale.linear() | |
| .range(['#f2f2f2', 'darkgreen']) // or use hex values | |
| .domain([0, 10]); | |
| var tooltip = d3.select("#playground") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //registering a Model in Grail | |
| var grailed = require("grail"); | |
| var app = grailed("MyApplication"); | |
| app.config({ | |
| initialise: function () { | |
| /* Require all configs */ | |
| require('./config/moldy.config'); | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var toto = function (name, $Provider) { | |
| //will be an EntityService | |
| //name is test | |
| }; | |
| toto.$DataProvider = ""; | |
| IOC.register("Toto") | |
| .define( toto ) | |
| .inject({ name: "Test" }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define(["sitecore"], function (_sc) { | |
| _sc.Factories.createBaseComponent({ | |
| name: "Buttongroup", | |
| base: "BlockBase", | |
| selector: ".sc-button-group", | |
| attributes: [ | |
| { name: "commands", defaultValue: [] } | |
| ], | |
| initialize: function () { | |
| this._super(); |
NewerOlder