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
| /** | |
| * Stand alone polyfill allow only numbers on input of type number. | |
| * | |
| * While input filtering is already supported by default by some browsers, maximum length has not been implemented by | |
| * any. This script will solve both issue and make sure that only digits can be entered in input elements of type | |
| * number. If the optional attribute `max` is set, it will calculate it's length and mimic the `maxlength` behavior on | |
| * input of type text. | |
| * | |
| * Supports: | |
| * |
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
| <html> | |
| <head> | |
| </head> | |
| <body> | |
| <script src="lib/yourlib.js"></script> | |
| <script> | |
| window.onload = function () { | |
| EntryPoint.run(); | |
| }; | |
| </script> |
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
| /* Non-responsive overrides for Bootstrap 3 | |
| * | |
| * Utilize the following CSS to disable the responsive-ness of the container, | |
| * grid system, and navbar. | |
| */ | |
| /* Reset the container */ | |
| .container { | |
| max-width: none !important; | |
| width: 970px; |
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'; | |
| // Ordinal Number Filter | |
| // --------------------- | |
| // This filter takes a number and returns its ordinal value | |
| // i.e. 1 -> 1st, 2 -> 2nd, etc. | |
| // h/t http://ecommerce.shopify.com/c/ecommerce-design/t/ordinal-number-in-javascript-1st-2nd-3rd-4th-29259 | |
| angular.module('ordinal', []).filter('ordinal', function() { |
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.prototype.compose = function(g) { | |
| var fn = this; | |
| return function() { | |
| return fn.call(this, g.apply(this, arguments)); | |
| }; | |
| }; | |
| Function.prototype.pipe = function(g) { | |
| var fn = this; | |
| return function() { |
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 first = (function() { | |
| var chainNames = ["then", "andThen", "next"]; | |
| var endChainNames = ["finally", "andFinally", "last"]; | |
| var chain = function(fn) { | |
| var f1 = function(g) { | |
| var func = function() {return g.call(this, fn.apply(this, arguments));}; | |
| chain(func); | |
| return func; | |
| }; | |
| var f2 = function(g) { |
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
| [ | |
| {name: 'Afghanistan', code: 'AF'}, | |
| {name: 'Åland Islands', code: 'AX'}, | |
| {name: 'Albania', code: 'AL'}, | |
| {name: 'Algeria', code: 'DZ'}, | |
| {name: 'American Samoa', code: 'AS'}, | |
| {name: 'AndorrA', code: 'AD'}, | |
| {name: 'Angola', code: 'AO'}, | |
| {name: 'Anguilla', code: 'AI'}, | |
| {name: 'Antarctica', code: 'AQ'}, |