I hereby claim:
- I am JonathanGawrych on github.
- I am jonathangawrych (https://keybase.io/jonathangawrych) on keybase.
- I have a public key whose fingerprint is A680 6B2B A7AC FEB9 5CD2 1F37 5E23 FEF2 F8AC 3368
To claim this, I am signing this object:
| // 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) { |
| // 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', |
| @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; |
| // 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) { |
| 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 |
| # 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* |
| // see http://stackoverflow.com/questions/109023/ | |
| let simd3 = SIMD.Uint32x4.splat(0x33333333); | |
| let simd5 = SIMD.Uint32x4.splat(0x55555555); | |
| let simd01 = SIMD.Uint32x4.splat(0x01010101); | |
| let simd0F = SIMD.Uint32x4.splat(0x0F0F0F0F); | |
| function popcnt(simd) { | |
| simd = SIMD.Uint32x4.sub(simd, SIMD.Uint32x4.and(SIMD.Uint32x4.shiftRightByScalar(simd, 1), simd5)); | |
| simd = SIMD.Uint32x4.add(SIMD.Uint32x4.and(simd, simd3), SIMD.Uint32x4.and(SIMD.Uint32x4.shiftRightByScalar(simd, 2), simd3)); |
| @bottom-left-bg-color: #ff0000; | |
| @top-right-bg-color: #0000ff; | |
| @border-color: #cccccc; | |
| @border-width: 5px; | |
| @slant-angle: 15deg; | |
| @slant-height: 10px; | |
| @slant-anti-aliasing: 20% | |
| @slant-width: tan(@slant-angle) * @slant-height; | |
| @slant-hypotenuse: @slant-height / cos(@slant-angle); |
| // 1 << bit == 1 << (bit % 32) | |
| // 1 << 33 == 2 | |
| // need a structure to represent bit >= 32 | |
| var bit = 32; | |
| [(bit >> 5 == 3) << bit, | |
| (bit >> 5 == 2) << bit, | |
| (bit >> 5 == 1) << bit, | |
| (bit >> 5 == 0) << bit] |
I hereby claim:
To claim this, I am signing this object: