A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
//replace http://agar.io/main_out.js by this file | |
//with Fiddler Web Debugger (AutoResponder tab) | |
//bots can be created in different rooms - so try restart the page if need | |
var totalBotCount = 0; | |
function game(h, r, bot, botUrl, botName) { |
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
require 'drb/drb' | |
require 'micromidi' | |
# The URI we're using for RDb, we use unix sockets just because they're quicker. | |
DRB_URI="drbunix:/var/tmp/sonic-pi-midiconnector" | |
class SPIMidiConnector |
#!/bin/bash | |
# Save this file as /usr/bin/apt-pac and chmod +x it. | |
case "$1" in | |
autoremove) | |
pacman -Rns $(pacman -Qdtq); | |
;; |
# wavfile.py (Enhanced) | |
# Date: 20190213_2328 Joseph Ernest | |
# | |
# URL: https://gist.github.com/josephernest/3f22c5ed5dabf1815f16efa8fa53d476 | |
# Source: scipy/io/wavfile.py | |
# | |
# Added: | |
# * read: also returns bitrate, cue markers + cue marker labels (sorted), loops, pitch | |
# See https://web.archive.org/web/20141226210234/http://www.sonicspot.com/guide/wavefiles.html#labl | |
# * read: 24 bit & 32 bit IEEE files support (inspired from wavio_weckesser.py from Warren Weckesser) |
[ | |
{ | |
"name": "RS96 Arrows" | |
}, | |
[ | |
{ | |
"y": 0.5, | |
"c": "#00773a" | |
}, | |
"Esc", |
#!/bin/sh | |
# qemu-img create -f qcow2 mac_hdd.img 64G | |
# echo 1 > /sys/module/kvm/parameters/ignore_msrs | |
# | |
# Type the following after boot, | |
# -v "KernelBooter_kexts"="Yes" "CsrActiveConfig"="103" | |
# | |
# printf 'DE:AD:BE:EF:%02X:%02X\n' $((RANDOM%256)) $((RANDOM%256)) | |
# |
These files accompany a video at https://youtu.be/K1KQSFiHg6I which explores the use of a GUI to control a Sonic Pi program | |
running code to drive an external midi player. (I used Logic Pro) It currently works with SP2.12.0-midi-alpha1 on a Mac, | |
but may probably break on future versions. It is intended to show some concepts, particularly the use of a GUI written | |
in processing which can control SP by means of OSC messages. The source code of the processing sketch is included. | |
It also illustrates a technique to allow a Sonic Pi piece to be started at any bar, by calculating the start note for | |
each of the parts concerned. It can handle a tied note already playing at the start of the selected bar. | |
The final technique utilised is to use an external script utilising calls to the Sonic Pi cli interface gem to stop | |
Sonic Pi running and then to restart the program using a run_file command. In this way, Sonic Pi can respond to | |
a stop singal from the GUI and then restart playing when a subsequent Play cue is received via |
This is a quick Python script I wrote to download HumbleBundle books in batch. I bought the amazing Machine Learning by O'Reilly bundle. There were 15 books to download, with 3 different file formats per book. So I scratched a quick script to download all of them in batch.
(Final Result: books downloaded)