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 path = require('path') | |
var tako = require('tako') | |
var gist = require('gist') | |
var request = require('request') | |
var qs = require('querystring') | |
var leveldb = require('leveldb') | |
var https = require('https') | |
var htmldir = path.resolve(__dirname, 'attachments') |
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 request = require('request') | |
, express = require('express') | |
, app = express.createServer().listen(8000) | |
, slides = [] | |
, data = '' | |
, zip = require("node-native-zip") | |
; | |
app.get('/', function(req, res){ | |
// what needs to be done: fetch files from github, concatenate, arhive and send to user |
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
<section> | |
Hello world 1 | |
</section> |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>Video recording demo</title> | |
<link rel="stylesheet" type="text/css" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css"> | |
<link rel="stylesheet" type="text/css" href="style.css"> | |
</head> | |
<body> | |
<div class="container"> |
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
body.loading { cursor: wait; } |
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 $senator = $('.office-senator') | |
, $deputat = $('.office-deputy'); | |
$('select').click(function(){ | |
var value = $(this).val().trim(); | |
if(value == 'all') { | |
$senator.show(); | |
$deputat.show(); | |
} | |
if(value == 'office-deputy') { |
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
#! /bin/bash | |
if [[ -f ./$1 ]]; then | |
while true; do | |
time=$(stat -c %Y server.js | cut -d ' ' -f1); | |
oldtime=$(cat log); | |
if [[ "$oldtime" -lt "$time" ]] | |
then | |
if [[ $pid -gt 0 ]]; then | |
node server & |
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
/** | |
* TV screen | |
*/ | |
html { background: white; } | |
.tv { | |
position: relative; | |
width: 200px; |
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
/** | |
* TV screen | |
*/ | |
html { background: white; } | |
.tv { | |
position: relative; | |
width: 200px; | |
height: 150px; |
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
/** | |
* TV screen | |
*/ | |
html { background: white; } | |
.tv { | |
position: relative; | |
width: 200px; | |
height: 150px; |