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
<html> | |
<head> | |
<style> | |
.grid *:first-child:nth-last-child(1) { | |
width: 100%; | |
} | |
.grid *:first-child:nth-last-child(2), | |
.grid *:first-child:nth-last-child(2) ~ * { | |
width: 50%; |
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
<head> | |
<style> | |
section { | |
padding:2em 1.5em 1.5em 1.5em; | |
font-size:2em; | |
background:yellow; | |
font-family:sans; | |
position:relative; | |
overflow:hidden; | |
} |
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'); | |
var app = express(); | |
app.use('/totem', express.static(__dirname + '/totem')); | |
app.use('/remote', express.static(__dirname + '/remote')); | |
app.use('/minisite', express.static(__dirname + '/minisite')); | |
ap.get('/', function(req, res) { | |
res.send('<a href="/minisite">minisite</a><br>'); | |
res.send('<a href="/remote">remote</a><br>'); |
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 chai = require('chai'); | |
var assert = chai.assert; | |
var expect = chai.expect; | |
var should = chai.should(); | |
var sinon = require('sinon'); | |
function myAsyncFunction(callback) { | |
// 50ms delay before callback | |
setTimeout(function() { | |
console.log('hello'); |
NewerOlder