348 Commits

Author SHA1 Message Date
crista
d521abd5d7 Merge pull request #29 from bmistree/master
Add a single-line code golf example
v1.0 v2.7
2016-05-21 08:14:41 -07:00
bmistree
c94acde9bb Take filename argument from program arguments
Previously, I had hard-coded this. This commit also makes it so that
the script can be executed from any current working directory and
(hopefully) makes it platform agnostic by using os.path.join to build
the path to the stop words file.
2016-05-20 22:34:44 -07:00
bmistree
a5e05c411c Add a single-line code golf example 2016-05-20 00:19:51 -07:00
crista
aac9f9899c Update README.md
No longer accepting programs in different programming languages because students!
2015-01-31 16:18:34 -08:00
crista
3607d6d944 Merge pull request #25 from rtoal/master
A first try at a Ruby golf
2015-01-31 16:09:13 -08:00
crista
f96d66e5c6 Merge pull request #26 from sivabalan/patch-1
Fixed typo with wordfreqs variable
2015-01-31 16:08:44 -08:00
crista
b9833c4e52 Merge pull request #24 from JKesMc9tqIQe9M/master
removed an extraneous whitespace
2015-01-31 16:06:21 -08:00
sivabalan
c9c37d8072 Fixed typo with wordfreqs variable 2015-01-31 15:16:39 -08:00
Ray Toal
3169b4b509 A first try at a Ruby golf 2015-01-28 09:29:05 -08:00
JKesMc9tqIQe9M
efe7884167 removed an extraneous whitespace 2014-11-08 10:08:34 -05:00
crista
47c5cd0d5c Added link to book 2014-10-20 08:55:03 -07:00
Crista Lopes
3b328c2042 Made the main block clearer 2014-03-19 17:01:15 -07:00
Crista Lopes
2f483b1742 Make the main code more readable 2014-03-19 15:39:37 -07:00
Crista Lopes
d8721e123e Fixed line break 2014-03-18 16:46:47 -07:00
Crista Lopes
0311a99b47 Made the recursive program a bit simpler 2014-03-18 16:44:31 -07:00
Crista Lopes
1373ed542d Moved the shell script again to the pipeline style, where it belongs (a little better). 2014-03-18 15:35:21 -07:00
Crista Lopes
eda158793b Typo (dyslexia) 2014-03-18 13:52:19 -07:00
Crista Lopes
ccbd13c268 And this one too 2014-03-14 10:34:01 -07:00
Crista Lopes
b5b606cbbd Changed this one too 2014-03-14 10:27:59 -07:00
Crista Lopes
12616871b6 Changed the name of this style too 2014-03-14 10:19:21 -07:00
Crista Lopes
5a51b8db7b Renamed this style to actors, because that's what it is 2014-03-14 09:56:07 -07:00
Crista Lopes
f550600d6b Shortened the name of this style 2014-03-13 16:42:17 -07:00
Crista Lopes
5c89f795ae Changed the names of these two styles to what they really are: map reduce 2014-03-11 15:18:32 -07:00
Crista Lopes
56500a9255 Fixed typo in comment 2014-03-11 08:26:54 -07:00
Crista Lopes
adc29f814a Typo in comment 2014-03-08 14:14:57 -08:00
crista
34f37b87cc Merge pull request #23 from hukun01/master
Little refinement for tf-32.py
2014-03-08 08:37:03 -08:00
hukun01
5dbb552bc5 Read stopwords.txt when initialize, to avoid reading it in every update. 2014-02-28 19:46:06 -08:00
crista
8f09e02f3d Merge pull request #22 from hukun01/master
Update tf-23-monadic.py.
2014-02-16 07:38:09 -08:00
hukun01
854f78c80c Update tf-23-monadic.py. We can eliminate the extra parameter in the __init__. Let the naming in get_input method more clear. 2014-02-12 09:23:02 -08:00
Crista Lopes
be92fc4d6d Shorten this a little to fit in 1 page 2014-01-26 08:55:25 -08:00
Crista Lopes
6d6f59de5c Minor renaming 2014-01-26 08:39:38 -08:00
crista
bff0e4b6d7 Merge pull request #21 from mgiorgio/master
Avoid creating word_freqs outside and passing it around.
2014-01-26 08:29:39 -08:00
Crista Lopes
dcf6e6426a Eliminate the use of global variables; makes the example cleaner. 2014-01-26 08:28:17 -08:00
Matías
e2a8d8f017 Avoid creating word_freqs outside and passing it around. 2014-01-24 21:11:38 -08:00
Crista Lopes
390126b6f6 Moved the sh script that was in the candy factory style to the The One style, because pipes are really monadic in nature. Great example too. 2014-01-24 17:08:06 -08:00
crista
ed25b5a778 Merge pull request #20 from bravelittlescientist/master
Clojure Code Golf
2014-01-22 20:56:13 -08:00
Eugenia Gabrielova
6bbf023586 Changes print formatting statement, removing some characters 2014-01-21 22:04:36 -08:00
Eugenia Gabrielova
cfa820c394 Adds Java interop and changes remove to checking set 2014-01-21 21:48:26 -08:00
Eugenia Gabrielova
71fe15b79d Added my clojure code golf, passes tests 2014-01-21 21:11:57 -08:00
crista
0514124aa2 Merge pull request #19 from mgiorgio/master
Using function composition for printing the results
2014-01-17 08:19:22 -08:00
Matías
0ffe4b3fd6 Adding documentation for print_all 2014-01-16 21:47:54 -08:00
Matías
fdf9a855f2 Using function composition to print the results as well. 2014-01-16 21:45:45 -08:00
Crista Lopes
c309e8bca5 Minor cleanups 2014-01-15 08:02:49 -08:00
Crista Lopes
72b62229fe Undo one of the last changes regarding the print out 2014-01-12 21:29:28 -08:00
Crista Lopes
56f05355a9 Compact a bit by removing empty lines 2014-01-12 07:28:26 -08:00
crista
f32942d452 Merge pull request #17 from smtriplett/master
Add a check to handle input text with fewer than 25 words.
2014-01-12 07:19:49 -08:00
crista
f0eed1acd2 Merge pull request #16 from mgiorgio/master
Support input files that do not finish with CRLF.
2014-01-12 07:19:13 -08:00
smtriplett
4d3ba0ba1a Add a check to handle input text with fewer than 25 words. 2014-01-11 18:19:32 -08:00
Matías
84f3db6a71 Support input files that do not finish with CRLF. 2014-01-10 23:19:53 -08:00
crista
ebff0a19b6 Update README.md 2014-01-07 14:17:55 -08:00