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
// Make a custom "invalid" class that goes away | |
// when an element is focused. | |
var setupValidation = function(selector) { | |
$(selector).blur(function() { | |
var elm = $(this); | |
if (isInvalid(elm)) { | |
elm.addClass("invalid"); | |
} | |
}); |
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 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
<!doctype html> | |
<html ng-app="project"> | |
<head> | |
<title>Angular: Service and template example</title> | |
<script src="http://code.angularjs.org/angular-1.0.1.js"></script> | |
<script src="script.js"></script> | |
</head> | |
<body> | |
<div ng-view></div> | |
</body> |
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
<!doctype html> | |
<html ng-app="project"> | |
<head> | |
<title>Angular: Service example</title> | |
<script src="http://code.angularjs.org/angular-1.0.1.js"></script> | |
<script> | |
var projectModule = angular.module('project',[]); | |
projectModule.factory('theService', function() { | |
return { |
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 one way to get mod_mono up with OS X (Lion), for experienced computer users, | |
but inexperienced Apache users. Note, this is just if you're trying to get one project | |
up and running quickly: | |
1. Apache is already installed. Don't worry about it. | |
2. Get mono for OS X: http://www.go-mono.com/mono-downloads/ (the SDK) | |
3. Get the latest source for mono_mod: http://download.mono-project.com/sources/mod_mono/ | |
Extract the tar ball, go into the folder, and do this: | |
$ ./configure prefix=/Library/Frameworks/Mono.framework/Versions/2.10.9 --with-apxs=/usr/sbin/apxs --with-apr-config=/usr/bin/apr-1-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
# Apache: | |
# Set up http://mydomain.com/data to route to NodeJS at port 3000 on the same machine. | |
# | |
# Do this in your .conf file: | |
<Location /data> | |
ProxyPassReverse http://localhost:3000/data | |
ProxyPass http://localhost:3000/data | |
</Location> |
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 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 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
# Instructions: https://github.com/jimeh/git-aware-prompt | |
# Also see: http://www.ibm.com/developerworks/linux/library/l-tip-prompt/ |
OlderNewer