This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| time_entries = sql.define | |
| name: 'time_entries' | |
| columns: ['message', 'projectId', 'userId', 'start', 'end', 'duration', 'id'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| getForProject: (projectId, callback)-> | |
| statement = @time_entry.select @time_entry.star() | |
| .from @time_entry | |
| .where @time_entry.projectId.equals projectId |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public String buildImageURL(String path) { | |
| return | |
| new Uri.Builder() | |
| .scheme(scheme) | |
| .authority(hostname) | |
| .appendEncodedPath(base) | |
| .appendEncodedPath(path) | |
| .build().toString(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fixup |
I don't like a timer staring me in the face.
I like to know when I've hit points in time. Like every 30 mins, 1 hour, or a predefined time. (cater to pomodoro peeps)
I need a soft indication that the time is running. A green/pictorial to indicate the timer is running.
I want a count down timer too. This is general purpose. I have an over timer on right now and it is quiet. But sometimes this is nice for features. "I will pay you one hour to research said topic", exclaimed the client. For situations like this, it would be cool.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function fn() { | |
| try { | |
| fn() | |
| } catch(e) { | |
| console.log(e) | |
| return 'overflow' | |
| } | |
| } | |
| fn() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server{ | |
| server_name examplehost1.com; | |
| rewrite ^/(.*) http://www.examplehost1.com permanent; | |
| } | |
| server{ | |
| server_name blog.examplehost1.com; | |
| rewrite ^/(.*) http://www.examplehost1.com permanent; | |
| } | |
| server{ | |
| server_name www.examplehost1.com; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import "code.google.com/p/go-tour/pic" | |
| func Pic(dx, dy int) [][]uint8 { | |
| image := make([][]uint8, dy) | |
| for i := range image { | |
| image[i] = make([]uint8, dx) | |
| for x,_ := range image[i] { | |
| image[i][x] = uint8(x^2 * x) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "code.google.com/p/go-tour/wc" | |
| "strings" | |
| ) | |
| func WordCount(s string) map[string]int { | |
| words := strings.Fields(s) | |
| counts := make(map[string]int) |