Anglar JS
Check if null
app.controller('myController', function(){
this.current = 0;
this.setCurrent = function(newValue){
this.current = newValue || 0; < - this checks for null
};
Saturday, April 16, 2016
Tuesday, April 12, 2016
Useful Docer Commands
Delete all old containers
1. List them
sudo docker ps -a
2. remove all exited
sudo docker rm $(sudo docker ps -aq -f status=exited)
3. remove all created
sudo docker rm $(sudo docker ps -aq -f status=created)
Docker and Node.JS
My First Node.JS sever in Docker
Docker is a way to quickly deploy code in Linux that allows a repeatable process for automation at scale. Please visit the Docker web site for more information: https://www.docker.com/what-docker
At this time I was running Hyper-V on Windows 10 64 bit with Intel i7 processor and a newly upgraded 500GB SSD from Samsung.
The Linux VM I created was Ubuntu server 14.04 LTS
Dockerizing a Node.js web app
Docker is a way to quickly deploy code in Linux that allows a repeatable process for automation at scale. Please visit the Docker web site for more information: https://www.docker.com/what-docker
At this time I was running Hyper-V on Windows 10 64 bit with Intel i7 processor and a newly upgraded 500GB SSD from Samsung.
The Linux VM I created was Ubuntu server 14.04 LTS
Dockerizing a Node.js web app
https://nodejs.org/en/docs/guides/nodejs-docker-webapp/
GitHub The Basics
The Basics of Git using GitHub
1. Setup a GitHub account: https://github.com/join
2. Setup a new project repository: https://help.github.com/articles/create-a-repo/
3. Setup a local repository
Links:
How to push local changes to a remote git repository
http://stackoverflow.com/questions/7690108/how-to-push-local-changes-to-a-remote-git-repository-on-bitbucket
Subscribe to:
Posts (Atom)