I HAVE:
main -- A -- B
\
staging C -- D
\
feature E
# rgb <-> hsl algorithms from | |
# http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript | |
Colors = | |
# | |
# Converts an RGB color value to HSL. Conversion formula | |
# adapted from http://en.wikipedia.org/wiki/HSL_color_space. | |
# Assumes r, g, and b are contained in the set [0, 255] and | |
# returns h, s, and l in the set [0, 1]. | |
# |
I HAVE:
main -- A -- B
\
staging C -- D
\
feature E
// pure processing version | |
/* | |
The dragon curve drawn using an L-system. | |
variables : X Y | |
constants : F + − | |
start : FX | |
rules : (X → X+YF+), (Y → -FX-Y) | |
angle : 90° | |
Here, F means "draw forward", - means "turn left 90°", and + means "turn |
# frozen_string_literal: true | |
## | |
# Force a stale-open transaction on the Spanner Emulator by running this script | |
# and then killing it with Ctrl-C. | |
# | |
# Rerunning the script will result in a hung process followed by the "one | |
# transaction at a time" error. | |
## | |
require_relative "emulator_util" |
Gemfile.lock | |
test.db* |
# proxying through apache to a local rails instance, http & https | |
# apache *.conf file | |
<VirtualHost *:80> | |
ServerName psl.localhost | |
ServerAlias cms.psl.localhost | |
ServerAlias *.psl.localhost | |
ProxyPass / http://localhost:3000/ | |
ProxyPassReverse / http://localhost:3000/ |
# Tiny slow gravitational etch-a-sketch. Press a button to reset. | |
# using https://github.com/adafruit/Adafruit_CircuitPython_TrellisM4 | |
# and https://www.adafruit.com/product/4020 | |
import time | |
import board | |
import busio | |
import adafruit_adxl34x | |
import adafruit_trellism4 |
#!/usr/bin/env python | |
# based on https://github.com/adafruit/io-client-python/blob/master/examples/mqtt_client.py | |
import io | |
import time | |
import os | |
# Camera setup guide: https://learn.adafruit.com/cloud-cam-connected-raspberry-pi-security-camera/pi-camera-setup | |
import picamera | |
import base64 |
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- Fontawesome 5! Get it here: https://fontawesome.com/how-to-use/on-the-web/setup/hosting-font-awesome-yourself --> | |
<link rel="stylesheet" href="css/all.min.css" /> | |
<style> | |
body { | |
background: rgba(0, 0, 0); | |
color: #ffffff; | |
font-size: 16px; |
This demo script publishes a value to my Adafruit IO account once every minute or so from an Adafruit FONA 808 cellular board controlled by an Adafruit Metro and sending data over the Hologram network.