Skip to content

Instantly share code, notes, and snippets.

View monteslu's full-sized avatar
:shipit:
crushing all the code. Mostly into reusable modules, tho

Luis Montes monteslu

:shipit:
crushing all the code. Mostly into reusable modules, tho
View GitHub Profile
@monteslu
monteslu / client.js
Last active August 22, 2018 18:36
ar drone with browser face detection
const socket = io.connect();
const detector = new FaceDetector();
let face;
//deal with raw png data.
socket.on('png', function (packet) {
if(packet.data) {
const dataUrl = 'data:image/png;base64,' + packet.data;
const img = new Image();
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg3035"
viewBox="0 0 630 630"
height="100%"
dat://d40cf94435866fafa161c1cf5ac6fbba87c449696ab1c24732f09345a84e0f73
dat://4c82fd97fc845b37da5eef33f83b03979b2cf8a9ab53f83af2b5e3da1c4a783e
music: dat://2c1aebd957f3ee2f4ce0f76af0f09f81ee259fa0b4d4679822eb3b87db56a3b2
dat://28e82c8534a76b40439ce97b7f69bc5bb3c37f6b6a1c4d7c8feb2aebbcf00af1/
@monteslu
monteslu / flow.json
Created October 13, 2018 16:13
hsl quick bot
[{"id":"5B8LAF_kx78","type":"change","z":"4cDfTnOOUyA","name":"forward","rules":[{"t":"set","p":"payload","pt":"msg","to":"[37,1,38,0,39,1,34,0]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":1230,"y":545,"wires":[[]]},{"id":"Q_y_43OV28I","type":"change","z":"4cDfTnOOUyA","name":"reverse","rules":[{"t":"set","p":"payload","pt":"msg","to":"[37,0,38,1,39,0,34,1]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":1230,"y":611,"wires":[[]]},{"id":"878sgrEuzGI","type":"change","z":"4cDfTnOOUyA","name":"left","rules":[{"t":"set","p":"payload","pt":"msg","to":"[37,1,38,0,39,0,34,1]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":1231,"y":672,"wires":[[]]},{"id":"uPJDkhN8cq4","type":"change","z":"4cDfTnOOUyA","name":"right","rules":[{"t":"set","p":"payload","pt":"msg","to":"[39,1,34,0,37,0,38,1]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":1230,"y":738,"wires":[[]]},{"id":"9zVxYvdVzW8","type":"bluetooth ou
@monteslu
monteslu / gpu.html
Created September 12, 2024 20:35
single page compute shader in webgpu much faster than CPU equivalent.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>WebGPU Compute Shader Example</title>
</head>
<body>
<h1>WebGPU Compute Shader Example</h1>
<p id="output"></p>
<script type="module">