Skip to content

Instantly share code, notes, and snippets.

View danielspector's full-sized avatar

Daniel Spector danielspector

View GitHub Profile
module Keywords
extend self
def create(attributes: nil, parent_id: nil)
puts attributes
end
def hello
puts "hello"
end
end
Feature List - Needs to be implemented
1. Yelp result, sort by highest rating rather than first
2. Use the Chosen jQuery plugin from Harvest for the Yelp categories
a. http://www.yelp.com/developers/documentation/category_list
3. Top three results or ability to pass and get the new one
4. Open at a specific time, when they want to go
5. Train directions from both addresses to the yelp midpoint
6. Option to switch between transit, driving and walking directions
7. Find the midpoint based on travel time rather than distance
bundler-installed()
{
which bundle > /dev/null 2>&1
}
within-bundled-project()
{
local dir="$(pwd)"
while [ "$(dirname $dir)" != "/" ]; do
[ -f "$dir/Gemfile" ] && return
@danielspector
danielspector / bundle_auto_bash
Created February 28, 2014 19:51
Automatically append bundle exec to specified commands. HT http://twistedmind.com/bundle-exec-bash-shortcut
bundle_commands=( spec rspec cucumber cap watchr rails rackup shotgun )
function run_bundler_cmd () {
if [ -e ./Gemfile ]; then
echo "bundle exec $@"
bundle exec $@
else
echo "$@"
$@
fi