Skip to content

Instantly share code, notes, and snippets.

puts "Method 1 -- Wager"
puts "User 1 - 1 tokens"
puts "User 2 - 4 tokens"
wager_user1_wins = 0
wager_user2_wins = 0
max_token_count = 4
array = [1, 2, 2, 2, 2]
(1..1000).each do |i|
==> dyno-4467761.log (crash) <==
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/definition.rb:184:in `initialize': Permission denied - /disk1/home/slugs/ef506ef7-0863-4b78-97b2-5f7409e12284/mnt/Gemfile.lock (Errno::EACCES)
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/definition.rb:184:in `open'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/definition.rb:184:in `lock'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/environment.rb:39:in `lock'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/runtime.rb:35:in `setup'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler.rb:100:in `setup'
from /disk1/home/slugs/ef506ef7-0863-4b78-97b2-5f7409e12284/mnt/config/boot.rb:8
from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
source 'http://rubygems.org'
gem 'rails', '3.0.3'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3-ruby', :require => 'sqlite3'
# Use unicorn as the web server
[FETCH] Fetching Beach Creeps from http://www.beachcreeps.com
PostSelectorType Load (0.3ms) SELECT "post_selector_types".* FROM "post_selector_types" INNER JOIN "source_post_selector_types" ON "post_selector_types".id = "source_post_selector_types".post_selector_type_id WHERE (("source_post_selector_types".source_id = 1))
[POST_SELECTOR] Beach Creeps Post Selector: (#contententry h2 a)
[POST_SELECTOR] Found post Babes of the Day: Arianny Celeste (http://www.beachcreeps.com/babes-of-the-day-arianny/)
[POST_SELECTOR] Found post One Night Stand (http://www.beachcreeps.com/one-night-stand/)
[POST_SELECTOR] Found post Big Momma’s House (http://www.beachcreeps.com/big-mommas-house/)
[POST_SELECTOR] Found post The All American (http://www.beachcreeps.com/the-all-american/)
[GETTING CONTENT NODES] http://www.beachcreeps.com/babes-of-the-day-arianny/
PostContentNodeType Load (0.3ms) SELECT "post_content_node_types".* FROM "post_content_node_types" INNER JOIN "source_post_content_node_types" ON "post_content_nod
# Create the network
network = Network.create(:name => "4 Ringz", :description => "4 Ringz is better than 3 ringz!")
# Create the site
site = network.sites.create(:name => "Beach Creeps")
# Create a source for the site
source = site.sources.create(:name => "Beach Creeps", :url => "http://www.beachcreeps.com")
# Create a post selector type
class LoginFormComponent < Netzke::Base
js_base_class "Ext.form.FormPanel"
def configuration
super.merge({
:items => [{
:xtype => :fieldset,
:title => 'Login Form',
:items => [
{
var Gab = {
connection: null,
pending_subscriber: null,
on_roster: function (iq) {
$(iq).find('item').each(function () {
var jid = $(this).attr('jid');
var name = $(this).attr('name') || jid;
// transform jid into an id
---- STARTING SCRAPE ----
Game at Thu, Nov 18, 2010 EST
Game time 8:20p
VISITOR Rot: 307, Name: Chicago Bears Spread/Risk: +1.5/-110 Moneyline: TeamTotal: 17.5 O: -135 U: +105
HOME Rot: 308, Name: Miami Dolphins Spread/Risk: -1.5/-110 Moneyline: TeamTotal: 20.5 O: -115 U: -115
Total Spread: 39 O: -110 U: -110
--------------------------------------------------------
Game at Sun, Nov 21, 2010 EST
Game time 1:00p
VISITOR Rot: 409, Name: Oakland Raiders Spread/Risk: +7/-110 Moneyline: +260 TeamTotal: O: U:
# Time: 101026 9:56:40
# User@Host: jizztag[jizztag] @ theplanet.com [216.40.221.50]
# Query_time: 12.310083 Lock_time: 0.000210 Rows_sent: 528 Rows_examined: 1044443
SET timestamp=1288105000;
SELECT tags.*, COUNT(*) AS count FROM `tags` LEFT OUTER JOIN taggings ON tags.id = taggings.tag_id AND taggings.context = 'tags' INNER JOIN videos ON videos.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Video') AND (taggings.taggable_id IN(SELECT videos.id FROM `videos` JOIN taggings videos_taggings_hardcore_365 ON videos_taggings_hardcore_365.taggable_id = videos.id AND videos_taggings_hardcore_365.taggable_type = 'Video' AND videos_taggings_hardcore_365.tag_id = 32 JOIN taggings videos_taggings_fucking_904 ON videos_taggings_fucking_904.taggable_id = videos.id AND videos_taggings_fucking_904.taggable_type = 'Video' AND videos_taggings_fucking_904.tag_id = 158)) GROUP BY tags.id, tags.name HAVING COUNT(*) > 0 ORDER BY count desc LIMIT 600;
# Query_time: 2.864736 Lock_time: 0.000082 Rows_sent: 20 Rows_examined: 55338
SELECT * FROM `albums` WHERE (image_url_medium IS NOT NULL) ORDER BY rand() LIMIT 20;