I don’t often link to roundups, but this is a pretty fantastic set of websites for both design and development inspiration.
Beware of date camparison in javascript!
You can’t compare dt1 == dt2 cause this’ll check if it the same obj, not check value.
Only way is to dt1.getTime()==dt2.getTime()
This project by Hakim El Hattab is just sick. stroll.js is a collection of CSS list scroll effects. Oh, and of course, pull requests are welcome.
Besides the awesome work from Hakim, a few contributors helped make stroll.js possible as well:
- Paul Irish and Felix Gnass added performance improvements
- Kilian Ciuffolo added the Fly & Fly Reverse effects
- Dave Arel added the Fade effect
- Erick Daniszewski added the Twirl Effect
Also, if you haven’t heard Paul Irish, Boris Smus and Eric Bidelman kicked off the first episode of HTML5Rocks Live - which features stroll.js to show off some of the latest features in Chrome developer tools. The first 20 minutes Paul talks about a brand new feature: the DevTools’ vertical timeline!
When parsing boolean in nodejs e.g. when post request to the server.
I used to do this:
var mybool = Boolean(req.body.mybool);
This is wrong. The way to get Boolean from string is:
var mybool = (‘true’===req.body.mybool)
Connect 2.0 is here with new core middleware, miscellaneous improvements, and some new docs.
var app = connect()
.use(connect.logger('dev'))
.use(connect.static('public'))
.use(function(req, res){
res.end('hello world\n');
})
app.listen(3000);HTTP and HTTPS
Previously
connect.Server…