Curl is a tool to transfer data from or to a server.
curl -X POST "name=you&code=0" http://localhost:9999
man section <name>
Sections are well defined:
- 1 is for shell commands
| # 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. | |
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.
StrongLoop PM is a production process manager for Node.js application with built-in load balancing,
monitoring, multi-host deployment, and a graphical console