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
| #!/usr/bin/env bash | |
| function help() { | |
| cat <<HELP | |
| Git Jump (Forward & Back) | |
| http://benalman.com/ | |
| Usage: $(basename "$0") [command] | |
| Commands: |
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
| 'use strict'; | |
| var gulp = require('gulp'), | |
| gutil = require('gulp-util'), | |
| path = require('path'), | |
| vinylPaths = require('vinyl-paths'), | |
| del = require('del'), | |
| express = require('express'), | |
| tinyLr = require('tiny-lr'), |
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 UndoRedoMixin = { | |
| componentWillMount: function() { | |
| this.undoAction = false; | |
| this.redoAction = false; | |
| this.pastStates = []; | |
| this.futureStates = []; | |
| }, | |
| componentDidUpdate: function(prevProps, prevState) { | |
| if (this.undoAction) { | |
| this.futureStates.push(prevState); |
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 Box(x,y) { | |
| this.x = x; | |
| this.y = y; | |
| } | |
| var Box1 = Singleton(Box, { argumentCheck: 'equal'}); | |
| var Box2 = Singleton(Box, { argumentCheck: 'equal'}); | |
| var obj1 = new Box1(1,2); | |
| var obj2 = new Box2(1,2); |
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
| import React, { Component, PropTypes } from 'react'; | |
| const styles = { | |
| scrollManager: { | |
| position: 'absolute', | |
| height: '100%', | |
| width: '100%', | |
| overflowY: 'scroll' | |
| } | |
| }; |
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
| component name="Permission" { | |
| property name="id"; | |
| property name="name"; | |
| property name="roles"; | |
| public Permission function init() { | |
| return this; | |
| } | |
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
| <cfscript> | |
| data = QueryNew('name,id,salary', 'cf_sql_varchar,cf_sql_integer,cf_sql_integer', [ | |
| { name = 'Jack Harkness', id = 1, salary = 5800000 }, | |
| { name = 'Donna Noble', id = 2, salary = 4800000 }, | |
| { name = 'Clara Oswald', id = 3, salary = 6200000 }, | |
| { name = 'Rory Williams', id = 4, salary = 2650000 }, | |
| { name = 'Sarah Jane Smith', id = 5, salary = 2200000 } | |
| ]); |
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
| component extends='coldbox.system.EventHandler' { | |
| property name='dao' inject='models.TestDAO'; | |
| function index(event, rc, prc) { | |
| var data = dao.getData(); | |
| writeDump(data); | |
| abort; | |
| } |
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
| <!--- listener ---> | |
| <cffunction name="listener" output="false" access="public" returntype="any" hint="Add a new listener configuration."> | |
| <cfargument name="class" required="true" hint="The class of the listener"/> | |
| <cfargument name="properties" required="false" default="#structNew()#" hint="The structure of properties for the listner" colddoc:generic="Struct"/> | |
| <cfargument name="name" required="false" default="" hint="The name of the listener"/> | |
| <cfargument name="registerWithInjector" required="false" default="false" hint="Register the listener with the injector"/> | |
| <cfscript> | |
| // Name check? | |
| if( NOT len(arguments.name) ){ | |
| arguments.name = listLast(arguments.class,"."); |
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
| /** | |
| ******************************************************************************** | |
| Copyright 2005-2007 ColdBox Framework by Luis Majano and Ortus Solutions, Corp | |
| www.ortussolutions.com | |
| ******************************************************************************** | |
| */ | |
| component { | |
| // Application properties | |
| this.name = hash( getCurrentTemplatePath() ); | |
| this.sessionManagement = true; |
OlderNewer