hub is command line wrapper for git that makes you better at github.
- git create -d "This is your project discription"
- git push origin master
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
function Foo(){ | |
return this; | |
} | |
var fooThis = Foo(); // ? fooThis = | |
var fooThat = new Foo(); // ? fooThat = |
// create event | |
var evt = document.createEvent("Event"); | |
// initializing the event | |
evt.initEvent("anyName", true, true); | |
// add event handler | |
document.addEventListener("anyName", function(e){ | |
// your handler logic | |
console.log("e.target: ", e.target); |
{ | |
class Message { | |
doCallback(cb){ | |
cb("!!"); | |
} | |
doAnother(){ | |
console.log("??", this); // Message | |
} | |
doSomething() { | |
this.doCallback(function(message){ |
Install PostgreSQL: | |
Install PostgreSQL 9.6 via homebrew. | |
Before installation: | |
Uninstall PostgreSQL if you have installed it by homebrew with command: brew uninstall postgres. | |
Delete the database cluster, usually locates on /usr/local/var/postgres, or /usr/local/pgsql/data. | |
The command is: rm -rf /usr/local/var/postgres, or rm -rf /usr/local/pgsql/data. | |
StrongLoop PM is a production process manager for Node.js application with built-in load balancing,
monitoring, multi-host deployment, and a graphical console
In computer science, a type signature or type annotation defines the inputs and outputs for a function, subroutine, or method.
In window operating system, a window service is a computer program that operates in the background.
It is similar in concept to a Unix daemon.