From b01a168d4d8a30142acec5602434c0c324d958f3 Mon Sep 17 00:00:00 2001 From: Daniel Shiffman Date: Mon, 19 Sep 2016 14:29:11 -0400 Subject: [PATCH 1/3] oops, extra not necessary code makes it more complicated --- week2-regex/03_voweldoubler/sketch.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/week2-regex/03_voweldoubler/sketch.js b/week2-regex/03_voweldoubler/sketch.js index 2e2dadb..29b341e 100644 --- a/week2-regex/03_voweldoubler/sketch.js +++ b/week2-regex/03_voweldoubler/sketch.js @@ -6,11 +6,6 @@ // Here is where we are working with a regex function process(txt) { - // Using match() from String is the simplest way to do this - // Regex that matches double words, note use of global flag - var regex = /\b(\w+)\b\s+\1\b/g; - var results = txt.match(regex); - // A regex to match any vowel // Captured as group #1 var regex = /([aeiou])/gi; From 2d9d4d0ba45879d4aca188890b3f44ce19b3edaa Mon Sep 17 00:00:00 2001 From: Daniel Shiffman Date: Mon, 19 Sep 2016 15:51:56 -0400 Subject: [PATCH 2/3] Update README.md --- README.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ab888a2..99bbbcc 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ This course focuses on programming strategies and techniques behind procedural a * [Homework Assignment](https://github.com/shiffman/A2Z-F16/wiki/Week-1-Homework) ## Week 2 -- Regular Expressions +* [Notes and Examples](http://shiffman.net/a2z/regex/) * Also * multiple DOMs + multiple event * rita.js -- similar and rhyming, etc. @@ -40,12 +41,19 @@ This course focuses on programming strategies and techniques behind procedural a * Splitting with regex: `split()` * Replace with regex: `replace()` * [randexp.js](http://fent.github.io/randexp.js/) -* Homework Assignment -- TBA +* [Homework Assignment](https://github.com/shiffman/A2Z-F16/wiki/Week-2-Homework) ## Week 3 -- Data/API Workshop -* APIs -* Working with google sheets -* Parse (doesn't exist anymore, something else?) +* JavaScript libraries + * [rita.js](https://github.com/dhowe/RiTaJS) + * [nlp-compromise](https://github.com/nlp-compromise/nlp_compromise) +* Getting data from APIs + * [wordnik](http://developer.wordnik.com/) + * [nytimes api](https://developer.nytimes.com/) + * [wikipedia api](https://en.wikipedia.org/w/api.php) +* Working with google sheets: [tabletop.js](https://github.com/jsoma/tabletop) +* machine learning as service: [clarafai](https://www.clarifai.com/) +* Homework TBA ## Week 4 -- Intro to Node and Twitter Bots * Server side programming with Node From 7d2948f0697d4a14c6f68aeab2fedabc75e53306 Mon Sep 17 00:00:00 2001 From: Daniel Shiffman Date: Mon, 19 Sep 2016 20:08:50 -0400 Subject: [PATCH 3/3] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 99bbbcc..d0ff414 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,8 @@ This course focuses on programming strategies and techniques behind procedural a * [Homework Assignment](https://github.com/shiffman/A2Z-F16/wiki/Week-2-Homework) ## Week 3 -- Data/API Workshop +* JSON basics + * [Corpora maintained by tinysubversions](https://github.com/dariusk/corpora) * JavaScript libraries * [rita.js](https://github.com/dhowe/RiTaJS) * [nlp-compromise](https://github.com/nlp-compromise/nlp_compromise)