Skip to content

Instantly share code, notes, and snippets.

<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>
# 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")
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
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 }
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
class Source
include Mongoid::Document
include Mongoid::Slug
include Mongoid::Timestamps # adds created_at and updated_at fields
attr_reader :twitter_username, :rss_username
embeds_one :twitter, :class_name => "Twitter"
# fields
class Post
require 'carrierwave/orm/mongoid'
include Mongoid::Document
include Mongoid::Timestamps # adds created_at and updated_at fields
include Mongoid::Slug
include Mongoid::Paranoia
include Stateflow
# relations
referenced_in :source
# base folder path to look for watch folders
BASE_FOLDER_PATH = '\\\\192.168.222.50\main-content-backup'
ap '%s' % Settings::BASE_FOLDER_PATH
ap path
"\\\\192.168.222.50\\main-content-backup"
Notice the \\ now before main-content-backup
$(document).ready(function() {
// 4cd5b71dd64d240a09000001
Backbone.sync = function(method, model) {
alert(method + ' -- ' + model.url);
};
//var Tweet = Backbone.Model.extend({});
//var test = new Tweet;
@zenom
zenom / spec.rb
Created November 9, 2010 13:33
spec_helper.rb
scenario "have ability to edit profile", :js => true do
@ability.should be_able_to(:edit, @profile)
end