This file contains hidden or 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 | |
export DOTENV_ENV=${DOTENV_ENV:-dev} | |
GIT_DIR=$(git rev-parse --show-toplevel 2>/dev/null || pwd) | |
DOTENV_FILE=$GIT_DIR/.env.$DOTENV_ENV | |
if [ -e $DOTENV_FILE ]; then source $DOTENV_FILE; fi | |
$@ |
This file contains hidden or 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
class Tournament < ActiveRecord::Base | |
include Bracket::Swiss # (OR Bracket::KOTH OR Bracket::SingleElimination etc) | |
end | |
module Bracket | |
module KOTH | |
def self.included(base) | |
base.workflow do | |
# state and events for a king of the hill tournament | |
end |
This file contains hidden or 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
$(document).ready(function() { | |
$('#featured-location-0').show(); | |
$("#ww_img").hover( | |
function () { | |
timer.stop(); | |
}, | |
jQuery.timer(200, function(timer) { | |
var current = parseInt($('.featured:visible').attr('id').split('-')[2]); |
This file contains hidden or 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
<form name="mailing_list"> | |
<input type="text" name="email" id="emailform"> | |
<input type="button" id="go" value="Go!" onclick="subscribe();"> | |
</form> | |
<script language="javascript"> | |
function subscribe() { | |
var xmlhttp = new XMLHttpRequest(); | |
xmlhttp.open('POST', 'http://redlists.com/subscriptions/create', true); | |
xmlhttp.send("<?xml version='1.0' encoding='UTF-8'?><subscription><list_id>16</list_id><email>" + |