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
| # Mobile Tools for Java (J2ME) | |
| .mtj.tmp/ | |
| # Package Files # | |
| *.jar | |
| *.war | |
| *.ear | |
| # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | |
| hs_err_pid* |
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 defaultSortBy = 'lastName'; | |
| var sortBy = defaultSortBy.slice(); | |
| function toggleSortBy(sort) { | |
| // if we are using default, switch to array. | |
| if (typeof sortBy === 'string') | |
| sortBy = []; | |
| // if the value is in decending order | |
| if (sortBy.indexOf('-' + sort) !== -1) { | |
| // remove it |
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
| // Similar to Array.prototype.map, this function takes an array-like object and turns it into an associative map | |
| // Instead of the callback function being used to transform the value in the returned array, it is called to get | |
| // the key instead. Unlike map, this function will use the second param in place of `this`, if `this` isn't bound | |
| function mapAssociative(callback, thisArg) { | |
| var arr, len; | |
| /*jshint validthis:true */ | |
| arr = this || thisArg; | |
| /*jshint validthis:false */ | |
| if (arr === window) { |
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
| @weight-thin: 100; | |
| @weight-extra-light: 200; | |
| @weight-light: 300; | |
| @weight-normal: 400; | |
| @weight-book: 400; | |
| @weight-regular: 400; | |
| @weight-medium: 500; | |
| @weight-demi-bold: 600; | |
| @weight-bold: 700; | |
| @weight-heavy: 800; |
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
| // get all native objects key names (include non-enumerable properties) | |
| var windowItems = Object.getOwnPropertyNames(window); | |
| // exclude deprecated browser items to avoid console warnings | |
| // the tradeoff is 'isOnWindow' will incorrect report false for these items | |
| var deprecatedItems = ['webkitIDBTransaction', | |
| 'webkitIDBRequest', | |
| 'webkitIDBObjectStore', | |
| 'webkitIDBKeyRange', | |
| 'webkitIDBIndex', |
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
| // untested. Probably works. based off of angular's toJsonReplacer | |
| transformRequest: [function(d) { | |
| // why is angular.isFile or angular.isBlob not exposed? Who knows! Code copied here | |
| if (!angular.isObject(d) || | |
| Object.prototype.toString.call(d) === '[object File]' || | |
| Object.prototype.toString.call(d) === '[object Blob]') { | |
| return d; | |
| } | |
| return JSON.stringify(d, function(key, value) { |
NewerOlder