geeky · javascript

Javascript ES6 Highlights

Total credit to the ES6 quiz that you should take but I’m creating a poster version of the information shared on the quiz. I love straight forward code examples for learning. As a Java developer, these updates feel very natural. Let Introduces block scoping. Variables defined with let are available only in the nearest enclosing… Continue reading Javascript ES6 Highlights

geeky · javascript

Screen scraping census baby name data with nodeJs, cheerio(jQuery) and promises

—->My Soure Code<—- Goal Screen scrape census baby names data for the 51 states and produce a single CSV file. These data are in html table via sites such as http://www.ssa.gov/cgi-bin/namesbystate.cgi post {state: ‘AL’, year: 2012} http://www.ssa.gov/cgi-bin/namesbystate.cgi post {state: ‘AK’, year: 2012} http://www.ssa.gov/cgi-bin/namesbystate.cgi post {state: ‘CA’, year: 2012} …. Script must translate all of the… Continue reading Screen scraping census baby name data with nodeJs, cheerio(jQuery) and promises

css · geeky · javascript

How I made tiny carousel swipeable

On parents.com, we previously used the jquery plugin tiny carousel to display various lists of links mostly used to track pregnancy month/week: For example: The concept is easy. You have a list of items that you want to scroll horizontally by using nav buttons. In our case, all of the content are lists of links.… Continue reading How I made tiny carousel swipeable

geeky · javascript · php code

Twitter API 1.1 php get tweets script

I’ve been using a nice caching php script for getting my latest tweets. Recently twitter completely stopped support for API 1 and everyone must use API 1.1. API 1.1 requires authentication and therefore making it more complicated to use the original script. I’ve modified the script with the help of the codebird library to do… Continue reading Twitter API 1.1 php get tweets script