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
// This is a custom validator that will ensure that | |
// the value is an array of two elements where each | |
// element matches the same regex format. | |
var _ = reqquire('underscore'); | |
var simpleDateRegex = new RegExp("^[0-9]{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])"); | |
Validator.prototype.arrayOf = function(size, regex) { | |
// Split the string into an array. |
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
function get_delicious_json( tags, settings) { | |
var url = 'http://feeds.delicious.com/v2/json/' + settings.username + '/'; | |
var tagStories = new Object(); | |
var target = $('<ul>', {}).appendTo(settings.target); | |
$.each(tags.split(settings.separator), function(index, tagStr) { | |
$.getJSON(url + tagStr + "?callback=?", function(data) { | |
$.each(data, function(key, val) { | |
t = val.u; |
NewerOlder