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 a; | |
var button; | |
var canvas0; | |
var b; | |
var button; | |
var canvas1; | |
var name = "hugging"; | |
var name2 = "bearhead"; |
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 canvas; | |
var canvas2; | |
var canvas3; | |
var canvas4; | |
var canvas5; | |
var canvas6; | |
var canvas7; | |
var a; |
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
// Daniel Shiffman | |
// Programming from A to Z, Fall 2014 | |
// https://github.com/shiffman/Programming-from-A-to-Z-F14 | |
// This examples builds a very simple DOM visualization of concordance | |
// It reads the text one word a a time and animates the words growing according to their counts | |
var concordance; | |
var wutang; | |
var canvas; |
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> | |
<script type="text/javascript" src="/socket.io/socket.io.js"></script> | |
<script type="text/javascript"> | |
var socket = io.connect('http://104.131.93.171'); | |
socket.on('connect', function() { | |
console.log("Connected"); | |
}); |
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> | |
<script type="text/javascript" src="/socket.io/socket.io.js"></script> | |
<script type="text/javascript"> | |
var socket = io.connect('http://104.131.93.171'); | |
socket.on('connect', function() { | |
console.log("Connected biatch"); | |
/* console.log("mobile"); */ |
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
//////////////////////////////// HTTP Portion | |
var http = require('http'); | |
var fs = require('fs'); // Using the filesystem module | |
var path = require('path'); | |
var httpServer = http.createServer(requestHandler); | |
httpServer.listen(8088); | |
/* | |
function requestHandler(req, res) { | |
// Read index.html |
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> | |
<script type="text/javascript" src="/socket.io/socket.io.js"></script> | |
<script type="text/javascript"> | |
var sharonIndex=0; | |
var myid; | |
var socket = io.connect('http://104.131.93.171'); |
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> | |
<script type="text/javascript" src="/socket.io/socket.io.js"></script> | |
<script type="text/javascript"> | |
var socket = io.connect('http://104.131.93.171'); | |
socket.on('connect', function() { | |
console.log("Connected biatch"); |
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
/* | |
//////////////////////////////// HTTP Portion | |
// HTTP Portion | |
var http = require('http'); | |
var fs = require('fs'); // Using the filesystem module | |
var httpServer = http.createServer(requestHandler); | |
var url = require('url'); | |
httpServer.listen(8088); | |
function requestHandler(req, res) { |
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
////////////////save picture | |
function save(dataURL){ | |
alert("do you want to save?"); |
OlderNewer