[ Launch: CMPD-dot-line-graph ] 10801205 by hartzis
[ Launch: ] 11154514 by hartzis[ Launch: Tributary inlet ] 10932495 by ekimed
[ Launch: front range map test ] 11218266 by hartzis
[ Launch: front range polymap ] 11292469 by hartzis
[ Launch: specialty list ] 11552788 by hartzis
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 parseTweet = function(tweetText) { | |
var reghash, reguri, regusername; | |
reguri = /(https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&\/=]*))/g; | |
regusername = /([@]+([A-Za-z0-9-_]+))/g; | |
reghash = /[#]+([A-Za-z0-9-_]+)/g; | |
tweetText = tweetText.replace(reguri, "<a href='$1' target='_blank'>$1</a>"); | |
tweetText = tweetText.replace(regusername, "<a href='http://twitter.com/$2' target='_blank'>$1</a>"); | |
tweetText = tweetText.replace(reghash, "<a href='http://twitter.com/search?q=%23$1' target='_blank'>#$1</a>"); | |
return tweetText; | |
}; |
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 ngEnterDirectives = angular.module('ngEnterDirectives', []); | |
/* | |
This directive allows us to pass a function in on an enter key to do what we want. | |
*/ | |
ngEnterDirectives.directive('ngEnter', function () { | |
return function (scope, element, attrs) { | |
element.bind("keydown keypress", function (event) { | |
if(event.which === 13) { | |
scope.$apply(function (){ | |
scope.$eval(attrs.ngEnter); |
[ Launch: Hello World ] 093144225f67c410e515 by hartzis
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
// Hold functions related to client side password validation | |
var password = function () { | |
var minPasswordLength = 8; | |
var _hasLowerCase = /[a-z]/; | |
var _hasUpperCase = /[A-Z]/; | |
var _hasDigit = /\d/; | |
var _hasNonWord = /(_|[^\w\d])/; | |
var password = []; |
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(){ | |
'use strict'; | |
$(document).on('ready', function(){ | |
var getGitHubSocialInfo = function(githubURLJSON, githubURL, containerEl) { | |
$.ajax({ | |
url: githubURLJSON, | |
dataType: "jsonp", | |
success: function(data) { | |
var theCount = data.data.watchers_count; |
OlderNewer