Skip to content

Instantly share code, notes, and snippets.

hiorws /
Created May 23, 2020 — forked from KdotJPG/
Visually axis-decorrelated coherent noise algorithm based on the Simplectic honeycomb.
* 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
hiorws /
Created May 6, 2020 — forked from allskyee/
opencv python camera frame grab and display on different threads with safe synchronization
#!/usr/bin/env python
from threading import Thread, Lock
import cv2
class WebcamVideoStream :
def __init__(self, src = 0, width = 320, height = 240) : = cv2.VideoCapture(src), width), height)
wget "" -O "Programming Persistent Memory.pdf"
wget "" -O "Forensic Genetics in the Governance of Crime.pdf"
wget "" -O "Autistic Community and the Neurodiversity Movement.pdf"
wget "" -O "Updates on Myopia.pdf"
wget "" -O "Audacious Education Purposes.pdf"
wget "" -O "The Future of Software Quality Assurance.pdf"
wget "" -O "Understanding China’s School Leadership.pdf"
wget "" -O "Educational Change Amongst English Language College Teachers in China.pdf"
wget "
hiorws / sonarqube-docker-compose.yml
Created Feb 17, 2020 — forked from Warchant/sonarqube-docker-compose.yml
docker-compose file to setup production-ready sonarqube
View sonarqube-docker-compose.yml
version: "3"
image: sonarqube
- 9000
- ""
hiorws / OSC_C_01.rb
Created Apr 8, 2019 — forked from AlexandreRangel/OSC_C_01.rb
Controling Sonic Pi from Processing OSC
View OSC_C_01.rb
# reading OSC from Processing, Alexandre Enkerli
# full screen, fulltime mouse, Alexandre Rangel
# 24-Nov-2016
# Sonic Pi 2.11
use_bpm 120
set_sched_ahead_time! 0 # Setting that one to a negative value makes Sonic Pi complain, it sounds like.
live_loop :osc do # The loop is inside the fx as this is where the action will be.
osc=sync "/osc" # The OSC message which Processing sends, based on mouse coordinates.
hiorws / gist:50776cc72e8d884c8480fe42238e3070
Created Aug 10, 2016
Python AES two-way encryption/decryption example
View gist:50776cc72e8d884c8480fe42238e3070
from Crypto.Cipher import AES
import base64
import os
# the block size for the cipher object; must be 16, 24, or 32 for AES
# the character used for padding--with a block cipher such as AES, the value
# you encrypt must be a multiple of BLOCK_SIZE in length. This character is
# used to ensure that your value is always a multiple of BLOCK_SIZE
hiorws /
Created Oct 27, 2019 — forked from xavriley/
Original NES Mario Theme for Sonic Pi

Making Chiptune Music using Sonic Pi v2.0

Warning: this might not work on a RaspberryPi yet

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!

Getting the sounds of the NES chip

hiorws / trap3.rb
Created Oct 22, 2019 — forked from interstar/trap3.rb
Trap beat for sonic pi
View trap3.rb
use_bpm 145
# Our chord sequence
p1 = [chord(:E3,"minor7"),
View SonicPi3Visualiser.rb
#Program to drive Sonic Pi 3 visualiser written in "processing"
#by Robin Newman, September 2017
#see article at
#set up OSC address of processing sketch
use_osc '',5000
#select shapes to show
osc "/viz/shapes","e" #"s" "e" "r" Star,Ellipse, Rectangle or combination
sleep 0.1
live_loop :c do