Skip to content

Category Archives: javascript

Where to declare javascript variables

I’ve been reading the new edition of Flanagan’s “Javascript: The Definitive Guide”, straight through, and I thought I’d make some posts about what I’d learned. In javascript, variables are implicitly declared at the beginning of the function where they are used. So, in the following block, global = ‘global’;   function f() { console.log(global); var […]

Cot’s/Yahoo GM Script revised for 2011

“Updated for 2011 Season! Pulls MLB Service Time from Cot’s blog and displays in player title tag on Yahoo Fantasy Baseball! “ This script is extremely useful for a small subset of fantasy baseball players, and otherwise…not so useful. I refactored the code completely this year. It’s much faster, and it now caches the information […]