A simple low tech Tmux based dashboard to track COVID19 with https://covid19.trackercli.com/ APIs.
tmux curl watch
/* | |
* OpenSimplex Noise in Java. | |
* by Kurt Spencer | |
* | |
* v1.1 (October 5, 2014) | |
* - Added 2D and 4D implementations. | |
* - Proper gradient sets for all dimensions, from a | |
* dimensionally-generalizable scheme with an actual | |
* rhyme and reason behind it. | |
* - Removed default permutation array in favor of |
import numpy as np | |
import cv2 | |
import sys | |
cap = cv2.VideoCapture(0) | |
face_cascade = cv2.CascadeClassifier('<PATH_TO_CASCADES_FOLDER>/haarcascade_frontalface_default.xml') | |
while(True): | |
# Capture frame-by-frame |
#!/usr/bin/env python | |
from threading import Thread, Lock | |
import cv2 | |
class WebcamVideoStream : | |
def __init__(self, src = 0, width = 320, height = 240) : | |
self.stream = cv2.VideoCapture(src) | |
self.stream.set(cv2.cv.CV_CAP_PROP_FRAME_WIDTH, width) | |
self.stream.set(cv2.cv.CV_CAP_PROP_FRAME_HEIGHT, height) |
A simple low tech Tmux based dashboard to track COVID19 with https://covid19.trackercli.com/ APIs.
tmux curl watch
version: "3" | |
services: | |
sonarqube: | |
image: sonarqube | |
expose: | |
- 9000 | |
ports: | |
- "127.0.0.1:9000:9000" | |
networks: |
I was curious about making retro gaming sounds using Sonic Pi. A couple of months and a lot of Googling later, here's the original Mario Bros theme as it was heard on the NES console.
I'm (just about) old enough to remember rushing home from school to play this game at Philip Boucher's house, sitting cross-legged in front of the TV till my feet got pins and needles. Working out how to recreate it for Sonic Pi was a lot of fun!
use_bpm 145 | |
# Our chord sequence | |
p1 = [chord(:E3,"minor7"), | |
chord(:G3,"major7"), | |
chord(:A3,"minor7"), | |
chord(:G3,"m9"), | |
chord(:E3,"m9"), | |
chord(:C3,"minor7"), |
#Program to drive Sonic Pi 3 visualiser written in "processing" | |
#by Robin Newman, September 2017 | |
#see article at https://rbnrpi.wordpress.com | |
#set up OSC address of processing sketch | |
use_osc '127.0.0.1',5000 | |
#select shapes to show | |
osc "/viz/shapes","e" #"s" "e" "r" Star,Ellipse, Rectangle or combination | |
sleep 0.1 | |
live_loop :c do |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Practice AJAX</title> | |
<script type="text/javascript"> | |
function do_ajax() { | |
var req = new XMLHttpRequest(); | |
var result = document.getElementById('result'); | |
req.onreadystatechange = function() | |
{ |