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
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 http = require('http') | |
, formidable = require('formidable') | |
, fs = require('fs') | |
, qs = require('querystring') | |
, util = require('util') | |
, uploads = {}; | |
http.createServer(function(req, res){ | |
if(req.method == 'GET') { | |
if(req.url != '/favicon.ico') { |
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
info: Creating snapshot 0.1.0-2 | |
info: Updating app kreator-server | |
info: Activating snapshot 0.1.0-2 for kreator-server | |
info: Starting app kreator-server | |
error: Error running command deploy | |
error: Nodejitsu Error (500): Internal Server Error | |
error: There was an error while attempting to deploy your application. | |
error: | |
error: Error spawning drone: no matching engine found | |
error: Repository configuration |
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 five = require("johnny-five"), | |
board; | |
board = new five.Board(); | |
board.on("ready", function() { | |
(new five.Led(13)).on(); | |
var dataPin = 2; | |
var clockPin = 3; |
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 public "✰"> | |
<html> | |
<head> | |
<title>music player</title> | |
<link href='http://fonts.googleapis.com/css?family=Open+Sans:600' rel='stylesheet' type='text/css'> | |
<style> | |
body { | |
font-family:'Open Sans'; | |
font-weight: 600; | |
-webkit-animation:bg 30s; |
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
/** | |
* CSS Box model demo | |
*/ | |
#box { | |
width: 400px; | |
height: 360px; | |
border-width: 20px; | |
/box-sizing: border-box; | |
} |
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 { | |
padding:100px; | |
} | |
input:checked ~ p.first { | |
display:none; | |
} | |
input:not(:checked) ~ p.second { | |
display:none; |
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 { | |
padding:100px; | |
} | |
input:checked ~ p.first { | |
display:none; | |
} | |
input:not(:checked) ~ p.second { | |
display:none; |
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
.ball { | |
background:lightgreen; | |
background:-webkit-linear-gradient(#222, lightgreen); | |
width:200px; | |
height:200px; | |
border-radius:50%; | |
position:absolute; | |
left:0; | |
} |