Skip to content

Instantly share code, notes, and snippets.

View benjmin-r's full-sized avatar

Benjamin Reitzammer benjmin-r

View GitHub Profile
live_loop :kick do
sample :bd_808
sleep 0.5
end
live_loop :snare, sync: :kick do
sample :sn_dolf
sleep 1
end
@benjmin-r
benjmin-r / 01_README.md
Last active January 5, 2021 17:06
Sonic Pi Intro Workshop

This collection of files exists to serve you as starting point in exploring different sounds and how they're programmed in Sonic Pi.
Copy & Paste them into your Sonic Pi editor and start tweaking the values to change the sound.

Keyboard Shortcuts

The Sonic Pi integrated editor has a lot of keyboard shortcuts. A handy list of all shortcuts is integrated in the tutorial browser or online on github.

Attack, Decay, Sustain, Release

This image explains nicely, the four important parameters to controlling played sounds in Sonic Pi.

def kick1
synth :mod_sine, note: 15, amp: 3, attack: 0.1, release: 0.4
sample :drum_heavy_kick, lpf: 60
end
@benjmin-r
benjmin-r / Brew Guide v60.md
Last active May 29, 2018 13:56
My guide for brewing filter coffee with a Hario v60 filter

6g of beans per 100ml water (ex. 500ml water for 30g beans)

  1. Pour double the amount of water as you have beans (60g water in case of 30g beans)
  2. Wait ~30s (maybe longer if your beans are not super fresh) ... also called blooming
  3. Pour more water until you've reached 50% of the target amount of water (250g in case you have 30g/500ml beans/water)
  4. Wait until all water has drained from the filter
  5. Pour more water until you've reached ~75% of the target amount of water (400g in case you have 30g/500ml beans/water)
  6. Wait until all water has drained from the filter
  7. Pour more water until you've reached 100% of the target amount of water (500g in case you have 30g/500ml beans/water)
  8. Wait until all water has drained from the filter
@benjmin-r
benjmin-r / keybase.md
Created May 15, 2014 07:22
keybase.md

Keybase proof

I hereby claim:

  • I am nureineide on github.
  • I am breitzammer (https://keybase.io/breitzammer) on keybase.
  • I have a public key whose fingerprint is A15C 6660 D921 93FF 556E 532A A197 2AEA 7600 BD53

To claim this, I am signing this object:

##
## Simple password management in ksh-compatible shell
## You'll need a unix-like system and a working GPG configuration
export GPG_KEY=""
function pwgrep() {
gpg --batch -q -d -r $GPG_KEY $HOME/.auth/pwdb.asc | grep $*
}
function pwcat() {

The following is my reading list for 2014. It's probably not complete and subject to change.

Non-Fiction

  • “Nonviolent Communications” by Marshall Rosenberg
  • “Release It” by Michael Nygard
  • “Starfish And The Spider - The Unstoppable Power of Leaderless Organizations” by Ori Brafman & Rod Beckstrom
  • “Psychology of Computer Programming” by Gerald Weinberg
  • “The Will To Change: Men, Masculinity and Love” by Bell Hooks
  • “21 Irrefutable Laws of Leadership” by John Maxwell
@benjmin-r
benjmin-r / README.md
Created October 24, 2012 20:13
Some AD&D and Battletech books

Verschenke (alte) AD&D und Battletech Bücher

Ich ziehe um, und räume meinen Keller aus. Da ich die Bücher seit fast 20 Jahren nicht mehr angefasst habe, werde ich sie die nächsten 20 Jahre vermutlich auch nicht mehr anfassen. Zeit sie also loszuwerden. Zum Wegschmeißen sind sie allerdings zu schade. Das Verkaufen zuviel Arbeit. Also verschenke ich sie.

Wenn du irgendwas aus dieser Liste haben willst, sag mir Bescheid, und wir kriegen das Zeug schon irgendwie zu dir.

import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.*;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
@benjmin-r
benjmin-r / flaskapp.py
Created July 27, 2012 20:14 — forked from kennethreitz/flaskapp.py
My typical flask app base
# -*- coding: utf-8 -*-
import os
from flask import Flask
from flask_heroku import Heroku
from flask_sslify import SSLify
from raven.contrib.flask import Sentry
from flask.ext.celery import Celery