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
/** | |
* Created with IntelliJ IDEA. | |
* User: richevebebedor | |
* Date: 12/12/14 | |
* Time: 2:58 PM | |
* To change this template use File | Settings | File Templates. | |
*/ | |
/** | |
* Function: simComponentDlg |
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
angular | |
.module( "Meta", [ ] ) | |
.factory( "Meta", [ | |
function factory( ){ | |
var Meta = function Meta( parameterList, ruleSet ){ | |
this.parameterList = parameterList; | |
this.ruleSet = ruleSet; |
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 jsonHttp = function jsonHttp( ){ | |
var xmlHttpEngine = { | |
"xmlHttp": new XMLHttpRequest( ) | |
}; | |
var requestSet = { | |
"querySet": { }, | |
"parameterSet": { }, | |
"headerSet": { | |
"Content-Type": "application/json;charset=UTF-8" |
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
find . -iname '*.less' ! -type d -exec bash -c 'expand -t 4 "$0" > e && mv e "$0"' {} \; |
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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 when = function when( condition ){ | |
if( !( "namespaces" in when ) ){ | |
when.namespaces = { }; | |
} | |
if( !( "methods" in when ) ){ | |
when.methods = { }; | |
} | |
var data = { |
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: Aspen Labs, LLC. 2011 | |
* User: kutenai | |
* Date: 10/7/13 | |
* Time: 12:29 AM | |
*/ | |
/** | |
* Shared top-level controller. This controller handles the single-open | |
* state of the level1 Categories. |
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( $scope, $attrs ){ | |
this.groups = [ ]; | |
this.closeOthers = function( openGroup ){ | |
angular.forEach( this.groups, | |
function( group ){ | |
if( group !== openGroup ){ | |
group.isOpen = false; | |
} | |
} ); |
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
//Let's assume this is inside a qunit setup function. | |
//First we create our environment | |
var window = { | |
//Pass all global variables here. | |
//You can also attach mocks here. | |
"angular": { | |
"forEach": _.each | |
} | |
} |
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
/*: | |
@module-license: | |
The MIT License (MIT) | |
@mit-license | |
Copyright (@c) 2016 Richeve Siodina Bebedor | |
@email: [email protected] | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal |