This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var express = require('express'); | |
| var app = module.exports = express.createServer(); | |
| var store = new (require('connect').session.MemoryStore)(); | |
| app.configure(function(){ | |
| app.set('views', __dirname + '/view'); | |
| app.set('view options', { layout : false, filename : __dirname + '/view/index.jade' }); | |
| app.set('view engine', 'jade'); | |
| app.use(express.static(__dirname + '/static')); | |
| app.use(express.bodyParser()); | |
| app.use(express.cookieParser()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <time.h> | |
| int main(void) | |
| { | |
| time_t now; | |
| struct tm *ts; | |
| int year; | |
| char buf[80]; | |
| // Get the current time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getPicture(){ | |
| navigator.camera.getPicture(function(data){ | |
| // success handler | |
| alert('success'); | |
| }, function(){ | |
| // error handler | |
| alert('error'); | |
| }, { | |
| // options | |
| quality: 50 |
NewerOlder