Skip to content

Instantly share code, notes, and snippets.

Avatar
🍊

Lauren Lee McCarthy lmccart

🍊
View GitHub Profile
View gist:2294810e44ba37c03de85fb4d502c47c
I am attesting that this GitHub handle lmccart is linked to the Tezos account tz1ingPzzQcTuetzghNtfk69WgCDjYivJt1r for tzprofiles
sig:edsigtt1wBBYT4ytSq5Gr59wMYkiCcWy9Do5XnjTvQ8N3QcSeY43TUjL7zVk61Qi7tjxmzRuAuHXiNS2xekhxqRCy8AKskWS8r2
@lmccart
lmccart / p5.geolocation.js
Created Nov 15, 2019
p5.geolocation modifiations
View p5.geolocation.js
// p5.geolocation.js VERSION 3
console.log("%c p5.geolocation Loaded ", "color:pink; background:black; ");
/**
* Check if location services are available
*
* Returns true if geolocation is available
*
* @method locationCheck
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);
}