I hereby claim:
- I am bbrown on github.
- I am bbrown (https://keybase.io/bbrown) on keybase.
- I have a public key whose fingerprint is 920C A521 90DF 388D 4DF3 7150 786D 1268 5515 5268
To claim this, I am signing this object:
| var player = document.createElement('audio'); | |
| player.src = 'data:audio/mp3;base64,SUQzAgAAAAAQO1RUMgAACgB0cm9tYm9uZQBDT00AABAAZW5naVR1blBHQVAAMAAAVEVOAAAPAGlUdW5lcyAxMC42LjEAQ09NAABoAGVuZ2lUdW5OT1JNACAwMDAwMEEzRSAwMDAwMEFCQiAwMDAwMjk3MCAwMDAwMkI5RCAwMDAwMDFCQyAwMDAwMDFCQyAwMDAwNzdDQyAwMDAwN0FDQyAwMDAwMDFCQyAwMDAwMDFCQwBDT00AAIIAZW5naVR1blNNUEIAIDAwMDAwMDAwIDAwMDAwMjEwIDAwMDAwN0M2IDAwMDAwMDAwMDAwMjk5MkEgMDAwMDAwMDAgMDAwMTVCQzIgMDAwMDAwMDAgMDAwMDAwMDAgMDAwMDAwMDAgMDAwMDAwMDAgMDAwMDAwMDAgMDAwMDAwMDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
I hereby claim:
To claim this, I am signing this object:
| function yyyymmddhhmm(date) | |
| { | |
| // Modified from http://stackoverflow.com/a/3067896/20595 | |
| var yyyy = date.getFullYear().toString(); | |
| var mm = (date.getMonth()+1).toString(); // getMonth() is zero-based | |
| var dd = date.getDate().toString(); | |
| var hh = date.getHours().toString(); | |
| var min = date.getMinutes().toString(); | |
| return yyyy + (mm[1]?mm:"0"+mm[0]) + (dd[1]?dd:"0"+dd[0]) + (hh[1]?hh:"0"+hh[0]) + (min[1]?min:"0"+min[0]); // padding | |
| }; |
| angular.module("theModuleName").directive("mustBeThirdFriday", function(timeService) | |
| { | |
| return { | |
| require: "ngModel", | |
| link: function(scope, element, attrs, ngModel) | |
| { | |
| ngModel.$validators.mustBeThirdFriday = function(modelValue) | |
| { | |
| return timeService.isThirdFriday(new Date(modelValue + " 0:00")); | |
| }; |
| angular.module("app").filter("meta", function($filter) | |
| { | |
| return function() | |
| { | |
| var filterName = [].splice.call(arguments, 1, 1)[0] || "filter"; | |
| var filter = filterName.split(":"); | |
| if (filter.length > 1) | |
| { | |
| filterName = filter[0]; | |
| for (var i = 1, k = filter.length; i < k; i++) |
| angular.module("app").filter("percentage", ["$filter", function($filter) | |
| { | |
| return function(input, decimals, alreadyConverted) | |
| { | |
| var number = (alreadyConverted) ? input : input * 100; | |
| return $filter("number")(number, decimals) + "%"; | |
| }; | |
| }]); |
| angular.module("hedge").filter("ensmallenNumber", function() | |
| { | |
| return function(number) | |
| { | |
| var billion = 1000000000; | |
| var million = 1000000; | |
| if (number >= billion) | |
| { | |
| return number / billion + "B"; | |
| } |
| angular.module("app").filter("customCurrency", ["$filter", function($filter) | |
| { | |
| return function(amount, currencySymbol, fractionSize) | |
| { | |
| var currency = $filter("currency"); | |
| if (Math.abs(amount) > 1000) | |
| { | |
| fractionSize = 0; | |
| amount = Math.round(amount); | |
| } |
| ############################################### | |
| ######## THERE ARE SECRETS IN THIS FILE | |
| ######## DO NOT COPY THIS OR DISTRIBUTE | |
| ######## IT PUBLICLY. BE CAREFUL. | |
| ############################################### | |
| alias restart="source ~/.bash_profile" | |
| alias updatedb='sudo /usr/libexec/locate.updatedb' | |
| alias ls='ls -lh' | |
| alias c='clear' | |
| alias cls='c;ls' |
| // All unhandled exceptions in an AngularJS application are passed to a service $exceptionHandler, | |
| // which logs the error message in the browser's console. In large business applications, you may want | |
| // to log the error details on the server by calling an API. This can be done by decorating the $exceptionHandler service. | |
| // #49 - http://www.dotnetcurry.com/showarticle.aspx?ID=1115 | |
| app.config(function($provide) | |
| { | |
| $provide.decorator('$exceptionHandler', ['$log', '$http', '$delegate', function ($log, $http, $delegate) | |
| { | |
| return function (exception, cause) | |
| { |