This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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') | |
, mapRouter = require('./express-mapRouter') | |
, app = express.createServer() | |
, routesDir = __dirname + '/routes'; | |
// 'GET /' : 'root:index' はこれと同じ | |
// var root = require('./routes/root'); | |
// app.get('/', root.index); | |
var routesMap = { | |
'GET /' : 'root:index' |
This file contains 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
/** | |
* node.js/express twitter oauth integration sample | |
*/ | |
var express = require('express'), | |
connect = require('connect'); | |
/*var MemoryStore = require('connect/middleware/session/memory');*/ | |
var OAuth= require('oauth').OAuth; | |
var app = express.createServer(); |
This file contains 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
<!DOCTYPE HTML> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>rollover テスト</title> | |
</head> | |
<body> | |
<p><a class="hoge" href="http://example.com/"><img src="img/test.gif" alt="test">hoge</a></p> | |
<p><a class="hoge" href="http://example.com/"><img src="img/test.png" alt="test">hoge</a></p> |