Skip to content

Instantly share code, notes, and snippets.


Martin Ceronio mydoghasworms

View GitHub Profile
mydoghasworms / json_util.abap
Last active Nov 30, 2020
ABAP Utility class for mapping JSON to ABAP data and vice versa - Rather use
View json_util.abap
* Rather use
* The alternative is a better parser although it is not an emmitter)
class json_util definition.
public section.
data_to_json importing data type any
returning value(json) type string,
alandipert / midi.clj
Created Mar 31, 2010
Play music with Clojure and javax.sound.midi
View midi.clj
(import '(javax.sound.midi MidiSystem Synthesizer))
(defn play-note [synth channel note-map]
(let [{:keys [note velocity duration]
:or {note 60
velocity 127
duration 1000}} note-map]
(. channel noteOn note velocity)
(Thread/sleep duration)
(. channel noteOff note)))