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 'fastercsv' | |
rescue LoadError | |
puts "You need to install the fasterCSV gem" | |
exit | |
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
class Feed | |
attr_accessor :feed | |
def initialize(url) | |
Feedzirra::Feed.fetch_and_parse(url, {:on_success => lambda {|feed| @feed = feed[1] }, :on_failure => lambda {|url, response_code, response_header, response_body| raise "Feed failed to parse: http response code #{response_code}"}, :timeout => 4800}) | |
end | |
def sanitize! | |
@feed.sanitize_entries! | |
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
def has_generic_discounts? | |
return false if self.generic_discounts.empty? | |
true | |
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
* CORE * | |
Group CRUD with subdomain support | |
Meeting CRUD | |
Concise home page that conveys the app to new users, and provides some function for returning users | |
Search | |
Geocoding and geocoded search | |
Google Map integration (group#show primary addy, meeting#show actual addy, search#show multiple addresses) | |
Address book management for a group as an organizer | |
Topic suggestion and voting | |
Member#show should include twitter info, github info, etc |
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
[{"post":{"updated_at":"2009-08-17T17:56:26Z","title":"Second test","body":"Testing","id":21,"posted_at":"2009-08-17T17:56:00Z","created_at":"2009-08-17T17:56:26Z"}}] |
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
"/Users/josh/Downloads/parse_tweets.rb" -- 38 warnings: | |
TwitterBot::ParseTweets#find_and_send_average_rx_price calls @rx_brand.id multiple times (Duplication) | |
TwitterBot::ParseTweets#find_and_send_average_rx_price calls bitly.shorten("http://www.changehealthcare.com/rx_brands") multiple times (Duplication) | |
TwitterBot::ParseTweets#find_and_send_average_rx_price calls bitly.shorten("http://www.changehealthcare.com/rx_brands/#{@rx_brand.id}") multiple times (Duplication) | |
TwitterBot::ParseTweets#find_and_send_average_rx_price calls link.short_url multiple times (Duplication) | |
TwitterBot::ParseTweets#find_and_send_average_rx_price calls local_price.nil? multiple times (Duplication) | |
TwitterBot::ParseTweets#find_and_send_average_rx_price calls message.user multiple times (Duplication) | |
TwitterBot::ParseTweets#find_and_send_average_rx_price calls message.user.screen_name multiple times (Duplication) | |
TwitterBot::ParseTweets#find_and_send_average_rx_price calls params[:drugname] multiple times (Duplication) | |
TwitterBot::P |
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
$("a.select_all").click(function(){ | |
$(this).parents("div.resource_form form").find("input[type='checkbox']").attr("checked", "checked"); | |
return false; | |
}); | |
$("a.unselect_all").click(function(){ | |
$(this).parents("div.resource_form form").find("input[type='checkbox']").attr("checked", ""); | |
return false; | |
}); |
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
app 25197 5.5 9.2 44616 34060 ? S 14:41 0:09 tweetbots 0 | |
app 25201 2.7 8.7 43600 32424 ? S 14:41 0:04 tweetbots 2 | |
app 25209 0.8 7.8 39480 28976 ? S 14:41 0:01 tweetbots 3 | |
app 25216 3.4 14.4 64220 53264 ? S 14:41 0:05 tweetbots 4 | |
app 25223 5.2 8.6 41584 31940 ? S 14:41 0:07 tweetbots 5 | |
app 25231 2.2 8.2 40512 30252 ? S 14:42 0:02 tweetbots 6 | |
app 25235 5.2 9.0 43616 33360 ? S 14:42 0:06 tweetbots 7 |
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' | |
gem 'httparty' | |
require 'httparty' | |
class EbayProducts | |
include HTTParty | |
base_uri "open.api.ebay.com" | |
default_params :responseencoding => 'XML', :callname => "FindProducts", :version => "619", :siteid => 0, :maxentries => 18 | |
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/sh | |
exec 2>&1 | |
trap 'kill -HUP %1' 1 2 13 15 | |
exec /usr/bin/god -D -c /etc/god/master.god --no-syslog & wait |
NewerOlder