Skip to content

Instantly share code, notes, and snippets.

# Assignment:
number = 42
opposite = true
# Conditions:
number = -42 if opposite
# Functions:
square = (x) -> x * x
@switz
switz / gist:5129137
Last active December 14, 2015 18:28

//via zenobe

here are some cool things from trey about the pause...

Steve: How did you start doing things like the big pauses during Divided Sky? What do those moments feel like to you?

Trey: We had this bluegrass guy out on the road with us, the Reverend Jeff Mosier, and we talked about this a lot. The reason he likes acoustic bluegrass is that it's very, very personal. The way we've been doing the bluegrass tunes - with that two-mic setup, instead of being individually miked - is the most personal you can get. Jeff feels that every step of the way, when you separate the players with individual mikes, you're distancing the audience from the humanness. You're hiding behind microphones. Those things, like the pauses, developed from a general desire to merge with the audience as much as possible. If a set's been going on for a while, I might suddenly feel that we've got to make some really organic connection again. Those a cappella things, when we go out front, are a time to get the bearings straight again

from left to right...
The left most stomp switch turn on the Fuzzer. The fuzzer is based heavily on the Ibanez TS-9 schematic. The changes include True-Bypass signal switching (keeps original guitar tone in line) added distortion depth by changing the diode clipping arrangement. Next is added depth to the tone section, allowing for more crisp and brittle sounding lead tones. But this really isn't the point of having the fuzz on the pedal anyway (although it can be activated independently with the first stomp switch)... the fuzz is really there to push the other effect on the pedal. The ILLUMIRINGER. Let's recap... the first stomp switch turns on the super charges TS-9, the first THREE knobs from left to right are Fuzz Depth, Fuzz Tone, Fuzz Level.
Next we will move to the RIGHT MOST stomp switch... this will activate the ILLUMIRINGER effect. What is the ILLUMIRINGER effect, hard to explain... it's so many things. In technical terms it is running the guitar tone through a outdated analog telephone carrier
@switz
switz / server.js
Created November 26, 2012 23:39
Derby deployment
if (process.env.NODE_ENV === 'production') {
require('./src/server').listen(process.env.PORT || 3000);
} else {
require('derby').run(__dirname + '/src/server', 3000);
}
@switz
switz / phishNet.coffee
Created November 16, 2012 04:19
Client side and Server side request wrapper (used with DerbyJS)
# src/api/phishnet.coffee
API_KEY = 'removed'
API_URL = 'api.phish.net/api.js'
METHOD = 'pnet.shows.setlists.get'
API_FORMAT = 'json'
API_VERSION = '2.0'
Request = require '../lib/request'
@switz
switz / app.js
Created November 8, 2012 01:16
How to expose and implement a basic DerbyJS query.
// add in app/index.js
get('/:year', function(page, model, params) {
var year = params.year;
var usersQuery = model.query('users').bornOn(year);
model.fetch(usersQuery, function (err, users) {
// users is a scoped model
console.log(users.get()); // prints the results of the query
page.render()
prompt: Is this ok?: (yes) yes
info: Creating snapshot 0.0.0-4
info Uploading: [ ] 0%
info: Updating app PhishVids
info: Activating snapshot 0.0.0-4 for PhishVids
info: Starting app PhishVids
error: Error running command deploy
error: socket hang up
info:
jitsu's client request timed out before the server could respond
<div id="year-list-container">
<ul>
<li><a class="year blue 2012" href=/2012>2012</a></li>
<li><a class="year blue 2011" href=/2011>2011</a></li>
<li><a class="year blue 2010" href=/2010>2010</a></li>
<li><a class="year blue 2009" href=/2009>2009</a></li>
<li><a class="year blue 2004" href=/2004>2004</a></li>
<li><a class="year blue 2003" href=/2003>2003</a></li>
<li><a class="year blue 2000" href=/2000>2000</a></li>
<li><a class="year blue 1999" href=/1999>1999</a></li>
#!/bin/bash
function synth {
play -n synth 3 $(
for note in $(echo "$1"); do
echo square $note
done
) tempo "$2"
}
#<Hashie::Mash filename="circle.jpg" head="Content-Disposition: form-data; name=\"icon\"; filename=\"circle.jpg\"\r\nContent-Type: image/jpg\r\nContent-Length: 3269\r\n" name="icon" tempfile=#<File:/var/folders/0y/8n9zxyp529s5nqx9cr1vkdzc0000gn/T/RackMultipart20120705-19430-ukgjx5> type="image/jpg">