Record your screencasts as movie files (.mov) using quicktime.
- Install yasm http://yasm.tortall.net/Download.html
Record your screencasts as movie files (.mov) using quicktime.
| -- returning updated values and old values by using a sub-expression | |
| update orders | |
| set type = 'delivery' | |
| where id = 3767 | |
| returning id, type, ( | |
| select type from orders where id = 3767 | |
| ) as old_type; |
Some thoughts on building software
| # assuming positions are 2-tuple of row, column coordinates | |
| def shortest_risk(cave, risk_total = 0, current_position) | |
| if is_exit(cave, current_position): | |
| return risk_total + cave[current_position] | |
| new_total = risk_total + cave[current_position] | |
| new_cave = mark_cave_visited(cave, current_position) | |
| left = [current_position[0], current_position[1] - 1] | |
| right = [current_position[0], current_position[1] + 1] |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>org.golang.godoc</string> | |
| <key>EnvironmentVariables</key> | |
| <dict> | |
| <!-- set your gopath --> | |
| <key>GOPATH</key> |
| import ( | |
| "fmt" | |
| "log" | |
| "os" | |
| ) | |
| func debug(s string, o ...interface{}) { | |
| f, err := os.OpenFile("/tmp/debug.log", | |
| os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644) | |
| if err != nil { |
| <html> | |
| <body> | |
| <button onclick="s.dispatch('increment')">increment</button> | |
| <button onclick="s.dispatch('decrement')">decrement</button> | |
| <button onclick="unsubscribe()">unsubscribe</button> | |
| <div id="main"></div> | |
| <script> | |
| function Store(reducer) { | |
| this.reducer = reducer; |
| { | |
| "bad_ips": [ | |
| "1.1.1.1", | |
| "2.2.2.2", | |
| "2606:4700:2001:10d:0:0:0:f" | |
| ] | |
| } |