Skip to content

Instantly share code, notes, and snippets.

View jywarren's full-sized avatar

Jeffrey Warren jywarren

View GitHub Profile
@gfodor
gfodor / hubs-director.txt
Last active May 12, 2024 17:02
Hubs director bookmarklet
javascript:(async function() {
/* Hubs Director Mode bookmarklet - Lets you easily create a custom lerp/slerp
* of the camera, optionally tracking a user, for recording nice videos of hubs.
*
* Director state is stored in the URL, so you can pass URLs around to share shots.
*
* To use:
*
* Enter a hubs room, move to the desired start position, and run the bookmarklet.
* The page will refresh and drop you into the room again.
@askpatrickw
askpatrickw / ESP32S2-Camera-Interface-Research.md
Last active May 2, 2024 15:00
Research about the ESP32-S2 Camera Interface

Research about the ESP32-S2 Camera Interface

I am very interested in the ESP32-S2's camera port and the possibility of using it for a variety of MicroPython\CircuitPython projects. My hope is that the ESP32-S2 will the ability to do do things similiar to what is possible on the Raspberry Pi. Today there is no ESP32-S2 board available which exposes this port, and no camera modeles, but I wanted to understand the hardware capabilities to understand what might be possible and just as important, what is not.

This write up is based on solely on a morning's worth of research. If there are errors

Wrap in:

<div style="margin:20px 0;">
</div>

Add:

@sagarpreet-chadha
sagarpreet-chadha / sagarpreet_chadha.md
Last active August 22, 2018 09:04
GSOC 2018 Work Product - Sagarpreet Chadha

GSoC with PublicLab

Finally, the GSoC coding period is coming to an end as I finish up my project. In this post I aim to summarize all of the work I have done during the past months.

GSoC 2018 Work Product - Sagarpreet Chadha

@montanaflynn
montanaflynn / youtube-cors-proxy.js
Created August 1, 2016 17:40
YouTube cors proxy
var express = require('express');
var request = require('request');
var app = express();
app.use(function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
next();
});
@oliyh
oliyh / image-url-to-data-uri.js
Created November 7, 2015 22:17
Convert an image url to a data URI without canvas
// hard won knowledge from http://stackoverflow.com/questions/20035615/using-raw-image-data-from-ajax-request-for-data-uri
var xmlHTTP = xhr.XMLHttpRequest();
xmlHTTP.open('GET', url, true);
xmlHTTP.responseType = 'arraybuffer';
xmlHTTP.onload = function(e) {
var arr = new Uint8Array(this.response);
var raw = String.fromCharCode.apply(null,arr);
var b64 = base64.encode(raw);
var dataURL="data:image/png;base64," + b64;
};
anonymous
anonymous / ant.js
Created September 15, 2015 14:48
An ant script saved from https://github.com/jywarren/antfarm
// set basic attributes here;
// "this" means this ant you're editing now
this.speed = 1;
this.color = 'red';
this.height = 40;
this.width = 40;
// runs every frame:
onRun = function () {
@jywarren
jywarren / database.yml
Last active August 26, 2015 19:13
c9.io setup scripts
# Warning: The contents of the database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
adapter: mysql2
username: <username>
password:
database: publiclab_test
encoding: utf8
pool: 5
@mathdoodle
mathdoodle / doodle.json
Last active August 28, 2023 20:31
Warping with WebGL
{
"uuid": "f27b5235-e517-4fc9-8467-1270bbac7bbf",
"description": "Warping with WebGL",
"dependencies": {},
"operatorOverloading": false
}