• to the beginning
    home
  • my work
    portfolio
  • rss syndication
    entries
  • rss syndication
    comments
  • to the bottom
    down
#ekynoxe
development / design / triathlon
Archives for category: javascript

Evaluating function return values with Jasmine

August 26, 12 //
0

I’ve been using jasmine at work as a javascript test framework to cover front-end code with all sorts of tests. Recently, on one particular spec, I needed to capture the values returned by a spied upon fonction, without completely interrupting the code execution. As capturing returned values from a spy before continuing code execution is something I couldn’t find in the jasmine framework, I wrote a small integration test that required to use spyOn().andCallFake(), instead of spyOn().andCallThrough(). Here’s my attempt at an implementation. (more…)

this=that

November 3, 10 //
0

Just posting a link for you javascripters: incredibly useful reminder from Timbo on OO Javascript and the his follow ups on method and technical
God boost for my start at betfair!

Mastermind

August 9, 10 //
2

Latest fun tiny project: creating a small mastermind game in javascript in less than 1k for http://js1k.com/.

Play here: http://mastermind.ekynoxe.com/ or download it from github and run it offline!

Rules are simple:

Guess by submitting with your keyboard numbers from 0-9
After pressing 4 digits the guess is automatically submitted
The result shows symbols:
* no symbol means no digit is in the code to guess
* a ‘-’ means one of the digits is in the code to guess, but not at the correct place
* a ‘+’ means one of the digits is in the code to guess, AND at the correct place
If a digit exists twice in the code to guess, symbols do not represent it, you will have
to get it by yourself!
An alert is displayed when the code is found, and the game reset

Hosting by Memset Dedicated Servers

  • Links

    • ekynoxe portfolio
    • Tom Hume
  • Tag Cloud

    agreement Apache behaviour Betfair better by bike clients commute contact form 7 contract CSS cycling delays deployment design development frustration git ironman javascript job lanzarote mobile motivation Orange php plugin race racing responsibility ruby running security server Spain swimming syntax thoughts training travel triathlon UX video wordpress work Zend
  • Categories

    • Apache
    • authlogic
    • Betfair
    • code
    • conferences
    • CSS
    • cycling
    • design
    • games
    • gear review
    • git
    • javascript
    • link
    • mobile
    • Orange
    • photoshop
    • potd
    • ruby
    • shopify
    • testing
    • thoughts
    • tools
    • travel
    • triathlon
    • Uncategorized
    • UX
    • wordpress
    • work
    • work project
    • Zend
Wu Wei by Jeff Ngan.
back to the top