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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>good-listener</title> | |
</head> | |
<body> | |
<h1 id="title">good-listener</h1> | |
<style> | |
* { |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<!-- hamachi --> | |
<object type="application/x-vlc-plugin" data="rtsp://admin:someone@192.168.7.181:554/live1.sdp" width="500" height="375" id="video1"> | |
<param name="movie" value="rtsp://admin:someone@192.168.7.181:554/live1.sdp"> | |
<embed type="application/x-vlc-plugin" name="video1" autoplay="no" loop="no" width="500" height="375" target="rtsp://admin:someone@192.168.7.181:554/live1.sdp" /> | |
</object> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="format-detection" content="telephone=no"> | |
<link href="https://fonts.googleapis.com/css?family=PT+Serif" rel="stylesheet"> | |
<style> | |
body { | |
margin: 0; |
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
////////////////////////////////////////////////////////////////////// | |
// mouseX, mouseY | |
function setup() { | |
createCanvas(windowWidth, windowHeight); | |
} | |
function draw() { | |
background(200, 20, 20, 10); | |
ellipse(mouseX, mouseY, 50, 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
///////////////////////////////////////////////////////////////////////////////// | |
///// INTRO P5 / ABSTRACT SCORE (20 mins) | |
// editor.p5js.org | |
createCanvas(w, h); | |
setup() and draw(); | |
background('name'); |
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
function setup() { | |
createCanvas(400, 400); | |
} | |
function touchEnded(e) { | |
console.log(e); | |
} |
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
// https://github.com/song940/node-escpos | |
var path = require('path'); | |
var express = require('express'); | |
var app = express(); | |
var http = require('http').Server(app); | |
var io = require('socket.io')(http); | |
var escpos = require('escpos'); | |
process.on('uncaughtException', function (err) { |
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
// library to use: https://momentjs.com/docs/#/query/ | |
var data = [{ts: "5/8/blah" , secret:"i washed jeans", value:"immediately"}, {}]; | |
function getAllReady(arr) { | |
var newArr = []; | |
for (var i=0; i<data.length; i++) { | |
var now = new Date().getTime(); | |
var ts = data[i].ts; |
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
$("#change").click(function() { | |
$.ajax({ | |
url: "http://api.openweathermap.org/data/2.5/weather?id=5128581&units=imperial", | |
dataType: 'json', | |
success: function(data) { | |
changeMainPage(data); | |
}, |
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
// 1. Setup project on Heroku (SEE OTHER SHEET) | |
// 2. Setup app | |
////////////////////////////////////////////////// | |
//// RANDOM BLINK TIMER | |
//// NODE | |
// You will need to install the express module | |
// http://expressjs.com |