HTML -> PDF with nodejs

Install http://phantomjs.org/ and then install the phantom node module https://github.com/sgentle/phantomjs-node Here is an example of rendering a pdf phantom = require('phantom') phantom.create(function(ph){ ph.createPage(function(page) { page.open("http://www.google.com", function(status) { page.render('google.pdf', function(){ console.log…

Css transform

The job have been done for you IE6+ support works flawless http://www.useragentman.com/tests/cssSandpaper/cube3.html Thats about it rest is in the posted article…

A late discover on my part

I just reasonly ran into post talking about using inline-block, i think the reason why i left that option out is that we supported IE7 for the projects we made at my firm Fast to grasp The concept is actually really simple and i grapsed the it really easy -…

Get your browser version

This script will return the exact browser name and version name try checkout the console function get_browser(){ var ua=navigator.userAgent,tem,M=ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || []; if(/trident/i.test(M[1])){ tem=/\brv[ :]+(\d+)/g.exec(ua) || []; return 'IE '…

Koajs next generation expressive middleware

From the developers behind express.js Expressive middleware for node.js using generators via co to make web applications and APIs more enjoyable to write. Koa's middleware flow in a stack-like manner allowing you to perform actions downstream, then filter and manipulate the response upstream. Koa's use of generators also…