One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| // How to: save as capture.js and run with "phantomjs capture.js" | |
| // Setup by modifying URLS, PAGE_WIDTH AND PAGE_HEIGHT constants! | |
| // Hint: set PAGE_WIDTH or PAGE_HEIGHT to 0 to capture full page! | |
| // modified version of script at http://www.cameronjtinker.com/post/2011/09/26/Take-Screenshot-of-all-HTML-documents-in-a-folder-using-PhantomJS.aspx | |
| var PAGE_WIDTH = 960; | |
| var PAGE_HEIGHT = 640; | |
| var URLS = [ | |
| "http://github.com", |
| beijing,personal,201310,1,6998102285168,刘宇宸 | |
| beijing,personal,201310,2,5491100633292,王良 | |
| beijing,personal,201310,3,3446103258689,王墨 |
| Node.js & express enable signed cookie and session | |
| app.use(express.cookieParser(‘telen’)); | |
| app.use(express.session()); | |
| response.cookie('name', 'value', {maxAge: 60000, signed: true}); | |
| request.signedCookies.name; |