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
use_synth :mod_sine | |
play 42, {:note_slide=>0.471170705571207, :note_slide_shape=>8, :note_slide_curve=>-0.3351614585154499, :amp=>0.1129172922742473, :amp_slide=>0.3246201483553677, :amp_slide_shape=>3, :amp_slide_curve=>0.8914627733264597, :pan=>-0.6571218715433411, :pan_slide=>0.218331300398235, :pan_slide_shape=>5, :pan_slide_curve=>0.008369173848740807, :attack=>0.19955740814628953, :decay=>0.33414500239374234, :sustain=>0.4518760246913071, :release=>0.48418574968066524, :attack_level=>0.12028166490552133, :decay_level=>0.05304447748576707, :sustain_level=>0.47910111636330455, :env_curve=>1, :cutoff=>8, :cutoff_slide=>0.09083431439032846, :cutoff_slide_shape=>4, :cutoff_slide_curve=>0.4818496482692505, :mod_phase=>0.4934488272873623, :mod_phase_slide=>0.15528846569863236, :mod_phase_slide_shape=>2, :mod_phase_slide_curve=>0.3733017585202254, :mod_range=>-18, :mod_range_slide=>0.2607238024031932, :mod_range_slide_shape=>6, :mod_range_slide_curve=>0.09381165018205162, :mod_pulse_width=>0.5734552069526933, : |
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
#!/bin/bash | |
# Install a custom ElasticSearch version - https://www.elastic.co/products/elasticsearch | |
# | |
# Add at least the following environment variables to your project configuration | |
# (otherwise the defaults below will be used). | |
# * ELASTICSEARCH_VERSION | |
# * ELASTICSEARCH_PORT | |
# | |
# Include in your builds via | |
# \curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/packages/elasticsearch.sh | bash -s |
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
# I have some colors and | |
# I want to know how many of each color I have. | |
colors = %w(red blue orange blue blue yellow red orange purple purple green green green blue orange yellow) | |
# I tried this: | |
counts = {} | |
colors.each do |color| | |
counts[color] += 1 | |
end |