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
html: | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="./foo.js"></script> | |
</head> | |
<body> | |
</body> | |
</html> |
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
<!--Instead of this,--> | |
<tr> | |
<th title="my tooltip content">Hover for tooltip</th> | |
</tr> | |
<!-- you might try this--> | |
<tr> | |
<th> | |
<div title="mytooltip content">Hover for tooltip</div> | |
</th> | |
</tr> |
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 runScope(angularScope,callback){ | |
var result = void 0; | |
var phase = angularScope.$root.$$phase; | |
if(phase == '$apply' || phase == '$digest'){ | |
result = callback === undefined ? void 0 : callback(angularScope); | |
}else{ | |
angularScope.$apply(function(){ | |
result = callback === undefined ? void 0 : callback(angularScope); |
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
//see this stackoverflow question | |
// http://stackoverflow.com/questions/13762228/confused-about-service-vs-factory/13763886#13763886 | |
app.service('myService', function() { | |
// service is just a constructor function | |
// that will be called with 'new' | |
this.sayHello = function(name) { | |
return "Hi " + name + "!"; | |
}; |
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
#under construction | |
#based off of https://codealoc.wordpress.com/2013/03/15/installing-iis-with-chocolatey/ | |
choco WindowsFeatures IIS-WebServerRole | |
choco WindowsFeatures IIS-ISAPIFilter | |
choco WindowsFeatures IIS-ISAPIExtensions | |
choco WindowsFeatures IIS-NetFxExtensibility | |
choco WindowsFeatures IIS-ASPNET |
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
#see https://stackoverflow.com/questions/160608/do-a-git-export-like-svn-export/8963061#8963061 | |
git clone --depth 1 --branch master git://git.somewhere destination_path | |
rm -rf destination_path/.git |
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
#see http://blog.flux7.com/blogs/docker/docker-commands | |
#and http://www.jamescoyle.net/how-to/1512-export-and-import-a-docker-image-between-nodes | |
#and https://github.com/docker/docker/issues/188 | |
#export to file | |
docker ps -a | |
docker export <CONTAINER ID> > image.tar | |
#import from file | |
tar -c <FILENAME> | docker import - image_name |
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
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) | |
docker rmi $(docker images -a) |
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
Here's teh codez, again: | |
``` | |
#concerning tagging, see http://stackoverflow.com/questions/21928780/create-multiple-tag-docker-image | |
sudo docker build -t my_mongodb . | |
``` |
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
#see https://github.com/mitchellh/vagrant/issues/1534 | |
sudo apt-get install nfs-common nfs-kernel-server |
OlderNewer