Joined October 2013
·

Lee Crossley

Technical Director at Click Innovate Ltd
·
Manchester
·
·
·

Posted to My favorite JS pattern over 1 year ago

Similar to the way I work, although I prefer a local variable over "this":

var tv = (function () {
        var tv = {};
        tv.pol = 42;
        tv.fullHD = true;
        return tv;
})();

I think you'd like my functional js library: https://github.com/leecrossley/functional-js complete with multiple function composition e.g. λ.compose(func1, func2, func3);

This "optimisation" breaks other frameworks (such as less css). I encountered this for the first time a while back: https://github.com/less/less.js/issues/1189#issuecomment-13766554 I'd have hoped the mobile operators would have resolved this by now.

Posted to Using npm in Europe over 1 year ago

Thanks @filipebarros, good tip. I personally alias so I can PUT registry.npmjs.org when publishing.

Posted to npm list --depth=0 over 1 year ago

@icflorescu yep, great point

Posted to npm list --depth=0 over 1 year ago

@heartcode try npm list --depth=0 "$@" 2>/dev/null (essentially ignore pointless errors by redirecting them to /dev/null)

Posted to Control Phonegap Splash Screen hiding over 1 year ago

Is it not <preference name="AutoHideSplashScreen" value="false" />?

Posted to JSON database engine over 1 year ago

I'd recommend using a JSON based document store, such as MongoDB

Posted to Commit Message Tips over 1 year ago

Start with a capital letter?

Achievements
264 Karma
30,305 Total ProTip Views