A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
| (defprotocol IEditName | |
| (get-name [this]) | |
| (set-name! [this val])) | |
| (deftype PersonName [^:volatile-mutable lname] | |
| IEditName | |
| (get-name [this] (. this lname)) | |
| (set-name! [this val] (set! lname val))) | |
| (def pname (PersonName. "hoge")) |
| This demonstrates how to make client side certificates with go | |
| First generate the certificates with | |
| ./makecert.sh test@test.com | |
| Run the server in one terminal | |
| go run server.go |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| </head> | |
| <body> | |
| <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css"> | |
| <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.9/angular.min.js"></script> | |
| <script src="http://metawidget.sourceforge.net/js/3.7/metawidget-core.min.js"></script> | |
| <script src="http://metawidget.sourceforge.net/js/3.7/metawidget-angular.min.js"></script> |
| // Moved to https://github.com/temoto/meetup |
| package main | |
| import ( | |
| "fmt" | |
| "reflect" | |
| ) | |
| //function types | |
| type mapf func(interface{}) interface{} |
| package main | |
| import ( | |
| "unicode/utf8" | |
| ) | |
| type Item string | |
| type Stream chan Item | |
| type Acc string |
| package main | |
| import ( | |
| "fmt" | |
| "reflect" | |
| ) | |
| type Foo struct { | |
| FirstName string `tag_name:"tag 1"` | |
| LastName string `tag_name:"tag 2"` |