This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ----------------------------- | |
# PostgreSQL configuration file | |
# ----------------------------- | |
# | |
# This file consists of lines of the form: | |
# | |
# name = value | |
# | |
# (The "=" is optional.) Whitespace may be used. Comments are introduced with | |
# "#" anywhere on a line. The complete list of parameter names and allowed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "nokogiri" | |
# opens every file in the given dir tree and converts any html img tags to rails image_tag calls | |
# | |
# example usage: | |
# ruby convert.rb ~/my_rails_app/app/views | |
# | |
# ***be careful and backup before using this*** | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# generate MIDI note names/numbers in YAML format | |
octaves = (0..10) | |
range = (0..127) | |
naturals = [ | |
{ :name => "C", :val => 0 }, | |
{ :name => "D", :val => 2 }, | |
{ :name => "E", :val => 4 }, | |
{ :name => "F", :val => 5 }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
controller: | |
Bank Select: 0 | |
Modulation Wheel: 1 | |
Breath Controller: 2 | |
Foot Controller: 4 | |
Portamento Time: 5 | |
Data Entry MSB: 6 | |
Channel Volume: 7 | |
Balance: 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'unimidi' | |
UniMIDI::Output.open(1) do |output| | |
output.puts(0xB0, 0x7C, 0) | |
output.puts(0xB0, 0x7F, 0) | |
end |
NewerOlder