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
STATE_CODES = [ | |
['AL', 'ALABAMA'], | |
['AK', 'ALASKA'], | |
['AZ', 'ARIZONA'], | |
['AR', 'ARKANSAS'], | |
['CA', 'CALIFORNIA'], | |
['CO', 'COLORADO'], | |
['CT', 'CONNECTICUT'], | |
['DE', 'DELAWARE'], | |
['DC', 'DISTRICT OF COLUMBIA'], |
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
ActionController::Routing::Routes.draw do |map| | |
map.namespace :admin do |admin| | |
admin.resources :manufacturers | |
end | |
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
ActionController::Routing::Routes.add_configuration_file(File.join(RAILS_ROOT, 'config', 'routes_custom.rb')) |
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
#!/usr/bin/env ruby | |
# ABSTRACT | |
# This file is to be executed by a cron script that is setup on a local server | |
# PROCESS | |
# 1. Load Rails environment and make connection to database | |
# 2. Get list of operators, get orders which have an agent that belongs to that partner to operator | |
# 3. With that list of orders, create the Excel spreadsheet | |
# 4. Mail spreadsheet to operator (CC to mycablehome) | |
# 5. Create record in Leads table with a reference to the spreadsheet |
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
require 'rubygems' | |
require 'rbosa' | |
require 'net/http' | |
require 'cgi' | |
require 'rexml/document' | |
include REXML | |
itunes = OSA.app('iTunes') | |
track = itunes.current_track |
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
begin require 'rubygems'; rescue LoadError; end | |
require 'rbosa' | |
require 'net/http' | |
require 'cgi' | |
require 'rexml/document' | |
include REXML | |
itunes = OSA.app('iTunes') | |
selection = itunes.selection.get | |
if selection.empty? |
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
// v0.2 | |
// | |
// ==UserScript== | |
// @name eMusic.fm | |
// @namespace http://633k.net | |
// @description Get tags for album from last.fm | |
// @include http://emusic.com/album/* | |
// @include http://www.emusic.com/album/* | |
// ==/UserScript== | |
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
# Last.fm Tagger v0.7 | |
# | |
# Author: | |
# [email protected] | |
# | |
# Abstract: | |
# For each selected track in iTunes, retrieve the genre from Last.fm and accordingly tag the track. | |
# Use -q to subdue confirmations | |
# | |
# Todo: |
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
:update_sources: true | |
:sources: | |
- http://gems.rubyforge.org/ | |
- http://gems.github.com | |
:benchmark: false | |
:bulk_threshold: 1000 | |
:backtrace: false | |
:verbose: true | |
gem: --no-ri --no-rdoc |
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
LoadModule passenger_module /Users/wes/src/passenger/ext/apache2/mod_passenger.so | |
PassengerRoot /Users/wes/src/passenger | |
PassengerRuby /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby | |
NameVirtualHost *:80 | |
# Added by the Passenger preference pane | |
# Make sure to include the Passenger configuration (the LoadModule, | |
# PassengerRoot, and PassengerRuby directives) before this section. |
OlderNewer