- https://en.wikipedia.org/wiki/List_of_airports_by_IATA_code:_A (and all the other letters of the alphabet 😟)
- https://en.wikipedia.org/wiki/List_of_time_zones_by_country
- https://en.wikipedia.org/wiki/List_of_military_time_zones (Not IANA zones)
- https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
- https://en.wikipedia.org/wiki/List_of_time_zone_abbreviations
- https://en.wikipedia.org/wiki/List_of_UTC_time_offsets
- https://en.wikipedia.org/wiki/Daylight_saving_time_by_country
This file contains 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
/*** Allow digits and whitespace ***/ | |
// Method 1: | |
jQuery.validator.addMethod("digitsWhitespace", function(value, element) { | |
return this.optional(element) || /^[\d\s]+$/.test(value); | |
}, jQuery.validator.messages.digits); | |
// Method 2: | |
jQuery.validator.addMethod("digitsWhitespace", function(value, element) { | |
return jQuery.validator.methods.digits(value.replace(/\s/g, ''), element); |
This file contains 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 $all = jQuery('*'), | |
R = function (n) { | |
return ~~(Math.random() * n); | |
} | |
setInterval(function () { | |
$all.eq(R($all.length)).css('backgroundColor','rgb('+R(255)+','+R(255)+','+R(255)+')') | |
}, 10); |
This file contains 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
#!/usr/bin/env node | |
/** | |
* INSTRUCTIONS | |
* | |
* npm install http-proxy | |
* node proxy.js | |
*/ | |
var config = { |
This file contains 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
/*** FUTURE API IDEAS ***/ | |
// DYNAMIC URL (option 1) | |
cl.addPath('dynamic', '/items', 'post'); | |
cl.dynamic.post(); | |
cl.addPath('dynamic', '/items/:id', ['get', 'put', 'delete']); | |
cl.dynamic(3).get(); | |
// DYNAMIC URL (option 2) | |
cl.addPath('dynamic', { |
This file contains 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 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
license: cc-by-4.0 |
This file contains 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
height: 700 | |
license: cc-by-4.0 |
This file contains 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
license: cc-by-4.0 | |
height: 600 |
This file contains 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
height: 700 | |
license: cc-by-4.0 |
OlderNewer