- The Unix philosophy, specially the "Make each program do one thing well" [1]
- File and directory navigation/manipulation (ls, cd, mkdir, rm, rmdir, touch, cp, mv)
- ln/unlink/readlink
| public static void main(String... args){ | |
| int i = 0; | |
| for (i = 0; i < 10; i++) { | |
| System.out.println("i=" + i); | |
| } | |
| System.out.println("final i=" + i); | |
| } |
| @Override | |
| public boolean equals(final Object obj) { | |
| if (obj == null) { | |
| return false; | |
| } | |
| if (obj == this) { | |
| return true; | |
| } | |
| if (obj.getClass() != getClass()) { | |
| return false; |
| <html> | |
| <head></head> | |
| <body> | |
| <input name="myButton" type="button" value="button 1"> | |
| <input name="myButton" type="button" value="button 2"> | |
| <input name="myButton" type="button" value="button 3"> | |
| <script type="text/javascript"> | |
| var buttons = document.getElementsByName("myButton"); | |
| watch('./(.*).js') { |m| run_tests } | |
| def run_tests | |
| output = `jasmine-node spec/` | |
| report output rescue nil | |
| end | |
| def report(output) | |
| tests = /[0-9]+ tests?/.match(output).to_s; | |
| failures = /[0-9]+ failures?/.match(output).to_s; |
| #!/bin/bash | |
| brew install imagemagick | |
| gem install rmagick |
| import com.googlecode.utterlyidle.* | |
| import com.googlecode.utterlyidle.servlet.ApplicationServlet | |
| import javax.servlet.http.HttpServlet | |
| import javax.servlet.http.HttpServletRequest | |
| import javax.servlet.http.HttpServletResponse | |
| class Application(bindings: List<Binding>): HttpHandler { | |
| val matcher = BindingMatcher(bindings = bindings) | |
| override fun handle(request: Request): Response { |