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
import decimal | |
from billing.lib.exceptions import NoResultFound | |
from billing.model.defaults import * | |
from billing.model.address import Address | |
from billing.model.company import Company | |
from billing.model.creditcard import CreditCard,PaymentAccount | |
from billing.model.membership import SiteMembership | |
from billing.model.meta import Session |
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
Sham.define do | |
name { Faker::Name.first_name } | |
surname { Faker::Name.last_name } | |
username { Faker::Internet.user_name } | |
password { (1..10).map { ('a'..'z').to_a.rand }.join } | |
email { Faker::Internet.email } | |
title { Faker::Lorem.words(5).join(' ') } | |
tagline { Faker::Lorem.words(8).join(' ') } | |
body { Faker::Lorem.words(10).join(' ') } | |
tags { Faker::Lorem.words(1).join } |
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 File.expand_path(File.dirname(__FILE__) + '/../test_config.rb') | |
context "Account" do | |
setup { Account.delete_all } | |
context "definition" do | |
setup { Account.make } | |
asserts_topic.has_field :name, :type => String |
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
# Using updated_feed.any? | |
servers/feed.rb:25:in `block in <main>': undefined method `any?' for #<Feedzirra::Parser::RSS:0x000001045e58f8> (NoMethodError) | |
# Using updated_feed.updated? | |
servers/feed.rb:25:in `block in <main>': undefined method `updated?' for nil:NilClass (NoMethodError) | |
# the developers example @ https://gist.github.com/132671/6727818ec78f766ef4b8321c114f29fbd72286a0 | |
require File.expand_path(File.dirname(__FILE__) + "/../config/boot") |
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
<div class='entry box_entry tweet'> | |
<a href="http://www.twitter.com/kurtpellegrino" class="twitter_username" target="_blank"><h4>@kurtpellegrino</h4></a> | |
<a href="http://www.twitter.com/kurtpellegrino" class="alignleft preloading_background" target="_blank"><img class="rounded" height="20" width="20" src="http://a3.twimg.com/profile_images/1070233339/34116_1477610550536_1541924692_31206169_8054414_n_normal.jpg" /></a> | |
<p class='status'> | |
@stephanieMMA does she really wow | |
</p> | |
</div> | |
<div class='entry box_entry tweet'> | |
<a href="http://www.twitter.com/kurtpellegrino" class="twitter_username" target="_blank"><h4>@kurtpellegrino</h4></a> | |
<a href="http://www.twitter.com/kurtpellegrino" class="alignleft preloading_background" target="_blank"><img class="rounded" height="20" width="20" src="http://a3.twimg.com/profile_images/1070233339/34116_1477610550536_1541924692_31206169_8054414_n_normal.jpg" /></a> |
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
ree-1.8.7-head > feed = Feed.first | |
=> #<Feed favicon: "", _keywords: #<Set: {"cagepotato.com"}>, slug: "cage-potato", created_at: Sun, 18 Jul 2010 03:15:01 UTC +00:00, etag: nil, title: "CagePotato.com", updated_at: Sun, 18 Jul 2010 13:36:39 UTC +00:00, auto_tweet: true, feed_url: "http://www.cagepotato.com/rss.xml", feed_format: "rss", url: "http://www.cagepotato.com", _id: BSON::ObjectID('4c4271b4acbef23392000006'), post_ids: [BSON::ObjectID('4c4272ddacbef23427000001'), BSON::ObjectID('4c4272ddacbef23427000002'), BSON::ObjectID('4c4272ddacbef23427000003'), BSON::ObjectID('4c4272ddacbef23427000004'), BSON::ObjectID('4c4272ddacbef23427000005'), BSON::ObjectID('4c4272ddacbef23427000006'), BSON::ObjectID('4c4272ddacbef23427000007'), BSON::ObjectID('4c4272ddacbef23427000008'), BSON::ObjectID('4c4272ddacbef23427000009'), BSON::ObjectID('4c4272deacbef2342700000a')], last_modified: Sat, 17 Jul 2010, active: true> | |
ree-1.8.7-head > feed.to_feed | |
=> #<Feedzirra::Parser::RSS:0x103dffa58 @title="CagePotato.com", @feed_ |
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
http { | |
passenger_root /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.15; | |
passenger_ruby /opt/ruby-enterprise-1.8.7-2010.02/bin/ruby; | |
passenger_log_level 1; | |
include mime.types; | |
default_type application/octet-stream; | |
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' |
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 Domain | |
include MongoMapper::Document | |
# key <name>, <type> | |
key :domain, String, :required => true, :index => true | |
key :rate, Integer | |
key :max, Integer | |
key :deferred, Boolean, :index => true | |
timestamps! | |
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
SyntaxError at /admin/models/create | |
compile error /Users/andy/Documents/Apps/models.securejoin.com/app/views/mailers/model_register/registration_email.haml:3: syntax error, unexpected ',', expecting ')' ..._true_false(("Hello #{:name}", = "Welcome to the site." ^ |
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
# m h dom mon dow command | |
*/2 * * * * /bin/bash /home/andy/public_html/mmawrapup.com/mmawrapup/node/dofeeds.sh | |