Skip to content

Instantly share code, notes, and snippets.

View unoseistres's full-sized avatar

uno seis tres unoseistres

View GitHub Profile
var a;
var button;
var canvas0;
var b;
var button;
var canvas1;
var name = "hugging";
var name2 = "bearhead";
@unoseistres
unoseistres / .js
Created May 14, 2014 18:52
"i love you so much" interactive comic
var canvas;
var canvas2;
var canvas3;
var canvas4;
var canvas5;
var canvas6;
var canvas7;
var a;
// 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;
<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");
});
<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"); */
//////////////////////////////// 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
@unoseistres
unoseistres / index.html
Created November 12, 2014 05:03
index.html
<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');
@unoseistres
unoseistres / mobile.html
Created November 12, 2014 05:03
mobile.html
<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");
@unoseistres
unoseistres / server.js
Created November 12, 2014 05:04
server.js
/*
//////////////////////////////// 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) {
@unoseistres
unoseistres / gist:b0ebedd1a1180b938244
Created March 30, 2015 16:49
resizing with native javascript
////////////////save picture
function save(dataURL){
alert("do you want to save?");