Skip to content

Instantly share code, notes, and snippets.

Lauren McCarthy lmccart

Block or report user

Report or block lmccart

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View p5.js
/*! p5.js v0.8.0 May 07, 2019 */
! function(e) {
if ("object" == typeof exports && "undefined" != typeof module) module.exports = e();
else if ("function" == typeof define && define.amd) define([], e);
else {
("undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this).p5 = e()
}
}(function() {
return function o(a, s, h) {
View good-listener.html
<!DOCTYPE html>
<html>
<head>
<title>good-listener</title>
</head>
<body>
<h1 id="title">good-listener</h1>
<style>
* {
View test.html
<!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>
View video-test.html
<!DOCTYPE html>
<html>
<head>
<script src='js/vendor/jquery-3.3.1.min.js'></script>
</head>
<body>
<object codeBase="/VDControl.CAB?2,0,0,100#version=2,0,0,100" classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" width="640" height="360" id="vlc" events="True">
<param name="MRL" value="rtsp://admin:someone@10.8.0.251:3554/live1.sdp" />
<param name="ShowDisplay" value="True" />
View template.html
<!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;
@lmccart
lmccart / interaction-device.js
Created Oct 22, 2018
interaction-device.js
View interaction-device.js
//////////////////////////////////////////////////////////////////////
// mouseX, mouseY
function setup() {
createCanvas(windowWidth, windowHeight);
}
function draw() {
background(200, 20, 20, 10);
ellipse(mouseX, mouseY, 50, 50);
View generated-score-p5.js
/////////////////////////////////////////////////////////////////////////////////
///// INTRO P5 / ABSTRACT SCORE (20 mins)
// editor.p5js.org
createCanvas(w, h);
setup() and draw();
background('name');
@lmccart
lmccart / sketch.js
Last active Sep 14, 2018
test.html
View sketch.js
function setup() {
createCanvas(400, 400);
}
function touchEnded(e) {
console.log(e);
}
View printer-example.js
// 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) {
View timetest.js
// 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;
You can’t perform that action at this time.