Skip to content

Instantly share code, notes, and snippets.

View lmccart's full-sized avatar
🍊

Lauren Lee McCarthy lmccart

🍊
View GitHub Profile
@lmccart
lmccart / gist:2273a047874939ad8ad1
Last active February 18, 2024 21:57
p5.js + p5.dom.js + clmtracker.js
<html>
<head>
<script src="clmtrackr.js"></script>
<script src="model_pca_20_svm.js"></script>
<script src="p5.js"></script>
<script src="p5.dom.js"></script>
<script>
var ctracker;
@lmccart
lmccart / gist:33f75e740bc9482f8092
Last active May 6, 2023 00:26
browser extensions
////////////////////////////////////////////////////////////////////
//// BROWSER ACTION / POPUP
{
"manifest_version": 2,
"name": "One-click Weather",
"description": "This extension demonstrates a 'browser action' with weather.",
"version": "1.0",
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd1(12, 11, 16, 17, 18, 19);
LiquidCrystal lcd2(12, 5, 6, 7, 8, 9);
LiquidCrystal lcds[2] = { lcd1, lcd2 };
int leds[2] = { 2, 10 };
// wedding
@lmccart
lmccart / extensions.js
Last active November 25, 2021 10:39
browser extension examples
/////////////////////////////////////////////////////////////////////////
//// MANIFEST
{
"manifest_version": 2,
"name": "Getting started example",
"description": "This extension shows a Google Image search result for the current page",
I am attesting that this GitHub handle lmccart is linked to the Tezos account tz1ingPzzQcTuetzghNtfk69WgCDjYivJt1r for tzprofiles
sig:edsigtt1wBBYT4ytSq5Gr59wMYkiCcWy9Do5XnjTvQ8N3QcSeY43TUjL7zVk61Qi7tjxmzRuAuHXiNS2xekhxqRCy8AKskWS8r2
@lmccart
lmccart / gist:532780549d49e36b5558
Last active November 25, 2020 01:55
face tracking with clmtrackr.js + p5.js
////////////////////////////////////////////////////////////////////
//// clmtrackr
<html>
<head>
<script src="clmtrackr.js"></script>
<script src="models/model_pca_20_svm.js"></script>
<script src="p5.js"></script>
<script src="p5.dom.js"></script>
<script>
@lmccart
lmccart / gist:a29c88800c8e0779d78e
Created March 5, 2015 19:26
wikipedia iframe example
<html>
<head>
<script src="jquery.js"/></script>
<script>
$(document).ready(function() {
$('#show').click(function() {
$('#wiki').fadeIn();
})
@lmccart
lmccart / p5.geolocation.js
Created November 15, 2019 18:40
p5.geolocation modifiations
// 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
@lmccart
lmccart / video-test.html
Created February 12, 2019 22:45
activex test
<!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" />
@lmccart
lmccart / p5.js
Created May 9, 2019 08:31
p5.gif
/*! 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) {