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

css · geeky · javascript

TinyNav – browser resize friendly

I use the TinyNav jQuery plugin to transfer a list menu into a dropdown for mobile devices. I notice when I resize my browser on my desktop, the TinyNav leaves kind of a nasty look. For example, after I resized my browser into mobile size like 450px wide, I have to refresh the page for… Continue reading TinyNav – browser resize friendly

geeky · javascript

jQuery mobile 1.2 alpha release popup to work within a page

Holy crap, I thought I was going to die. I couldn’t figure out for the life of me how to get the new jQuery mobile popup to work within a jQuery mobile page. The documentation just shows the sample code outside of a page. Outside of a page it works just fine. But as soon… Continue reading jQuery mobile 1.2 alpha release popup to work within a page

geeky · javascript

jQuery ON (syntax difference from live)

Since jQuery live is marked as deprecated. I thought it’d be a good thing to switch to use jQuery on. I was at first shocked to find out that “ON” did not work like “LIVE”. Without digging very far, I simply switched my old syntax that had to It worked for non dynamically generated DOM… Continue reading jQuery ON (syntax difference from live)