Commit Graph

43 Commits

Author SHA1 Message Date
Dan Buch
5d5ada2dfc Filling in Accumulator implementation and test client
as well as fixing the Canvas implementation so that it doesn't pop up an
X window on init.
2012-12-21 22:49:50 -05:00
Dan Buch
209e074503 Filling in Date implementation 2012-12-21 22:31:33 -05:00
Dan Buch
b7480b78a8 Closing window on 'q' instead of space
since it fits my brain better, was a leftover from the x-go-binding
example.
2012-12-21 17:29:05 -05:00
Dan Buch
809e5ae69e Fixing rectangle drawing
which was broken because I was treating the 3rd and 4th args to
`image.Rect` as width and height rather than end coords.
2012-12-21 09:19:35 -05:00
Dan Buch
be0c529381 Drawing pixel "misses" now
but looks like something is awry in how rectangles are being drawn.
2012-12-21 09:14:12 -05:00
Dan Buch
71ab8b249d Futzing around more with drawing API
including implementation of `Rectangle(...)` and supporting methods,
making `Draw()` a method of `Canvas`, other crap.
2012-12-21 00:34:30 -05:00
Dan Buch
d009f8b70d Getting a bunch more of the drawing API implemented
including drawing to a very plain X window, albeit an image of
nothingness.
2012-12-20 23:40:31 -05:00
Dan Buch
2b688fd385 Sourcing Go workspace env if present 2012-12-20 19:49:26 -05:00
Dan Buch
c2dc9cfe02 Starting work on the Interval2D example
and filling in drawing library along the way.
2012-12-20 10:47:12 -05:00
Dan Buch
5bf03a1a40 Cleaning up rolls implementation
to be a bit more idiomatic, I suppose.
2012-12-20 08:36:35 -05:00
Dan Buch
e81b35471e Fixing a few places where I was using "crypto/rand"
to use "math/rand" with a proper seeding instead.
2012-12-20 00:34:24 -05:00
Dan Buch
7a40632ca8 Implementing "Average" example
and supporting `Stdin.ReadDouble` method.
2012-12-19 23:23:35 -05:00
Dan Buch
e0101b4c69 Not using that GOROOT after all 2012-12-19 23:22:36 -05:00
Dan Buch
9a1c045581 Implementing the "RandomSeq" example
with supporting implementation of `StdRandom.uniform`
2012-12-19 22:58:37 -05:00
Dan Buch
6ebbf04980 Re-namespacing one more time to get sources back in the same tree.
I dunno...  this whole thing should be its own repo, probably.  Meh.
2012-12-19 22:33:46 -05:00
Dan Buch
76c392967d Re-namespacing everything and fixing imports to match 2012-12-19 21:10:56 -05:00
Dan Buch
5500be5264 Playing with rolls of dice or whatebbs 2012-11-18 22:09:49 -05:00
Dan Buch
0bad7fe2f9 Playing with counters and flips 2012-11-18 21:46:49 -05:00
Dan Buch
9cb1be13fe TRIVIAL go fmt 2012-11-18 20:21:16 -05:00
Dan Buch
e99e5165bd Filling in example binary search thing with real implementation 2012-11-18 20:20:29 -05:00
Dan Buch
0c300d7cdd Adding test for binary search rank func 2012-11-18 20:20:07 -05:00
Dan Buch
b867cd616a Adding implementation of binary search rank 2012-11-18 20:19:47 -05:00
Dan Buch
1ddd54676c Goofing around more with mechanics instead of reading the dang book 2012-11-18 19:00:50 -05:00
Dan Buch
3f696f3060 Filled in "ReadInts" implementation and test 2012-11-18 18:51:59 -05:00
Dan Buch
869142a314 Getting sidetracked writing utility functions 2012-11-18 13:47:26 -05:00
Dan Buch
8ca6f624d4 Starting to goof around with binary search
which lead into goofing around with IO streams...
2012-11-18 08:30:49 -05:00
Dan Buch
631472da41 Breaking things out, adding test, all that good crap 2012-11-18 08:06:50 -05:00
Dan Buch
f3712555d5 Go Euclid! 2012-11-18 07:50:09 -05:00
Dan Buch
d231791a19 Updating autoenv crap 2012-11-18 07:30:57 -05:00
Dan Buch
d2f94e6b8e Refreshing Algorithms 4th Ed. work, updating ignores. 2012-11-18 07:22:04 -05:00
Dan Buch
1b7a8b2e9b yeah, that's better 2012-05-30 07:43:48 -04:00
Dan Buch
86702165fe meant to use autoenv for this wacky Princeton setup 2012-05-29 14:40:07 -04:00
Dan Buch
dc110b78de Don't care so much if this fails 2012-05-05 16:45:49 -04:00
Dan Buch
6564fd2a39 More downloading and ignoring 2012-05-05 16:40:22 -04:00
Dan Buch
74abbcb0fc Yet more downloading, scripting and ignoring 2012-05-05 16:35:16 -04:00
Dan Buch
ff322f9d0e More extracting and ignoring 2012-05-05 09:09:07 -04:00
Dan Buch
aed5272445 Extracting even more 2012-05-05 09:02:01 -04:00
Dan Buch
8a687c6adf Extracting the algs4 jar for better visibility 2012-05-05 09:00:05 -04:00
Dan Buch
852f338c83 Didn't need these after all! 2012-05-05 08:47:56 -04:00
Dan Buch
c1b25343ae Going through the drjava verification steps 2012-05-05 08:46:23 -04:00
Dan Buch
8df2a13cd2 Wherps, should have done this first
but now that I'm doing it, I might as well capture setup in a script...
2012-05-05 08:25:39 -04:00
Dan Buch
73764bd0db That's what I meant 2012-05-05 07:49:59 -04:00
Dan Buch
d57f2f524f Picking up the Sedgewick & Wayne Algorithms book
starting by fetching copies of chapter 01 files.  Should I take on
maven?  Stick with ant?  Neither?
2012-05-05 07:42:42 -04:00