eddie cianci defeated

View gist:6969933
1 2 3 4 5 6 7 8 9 10
require 'curses'
Curses.init_screen
 
10.times do
Curses.setpos(0,0)
Curses.addstr("|")
Curses.refresh
sleep 0.33
 
Curses.setpos(0,0)
View free_email_provider_domains.txt
1 2 3 4 5 6 7 8 9 10
outlook.com
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
150ml.com
15meg4free.com
View node-bench.sh
1 2 3 4 5 6
$ time node -v
v0.8.19
real 0m0.016s
user 0m0.010s
sys 0m0.005s
View preview_test_spec.rb
1 2 3 4 5 6 7 8
it "should create a new test set" do
expect { @preview_test.save }.should change(user.test_sets, :count).by(1)
@preview_test.test_set.tap do |t|
t.account.should == account
t.user.should == user
t.service.should == email_service
end.should be_valid
end
View reports_controller.rb
1 2 3 4 5 6 7 8 9 10
class ReportsController < ApplicationController
respond_to :html, :xml
 
def index
@reports = Report.all
 
# the :notice key in the redirect below sets flash[:notice]
# so you can just display <%= flash[:notice] %> in your view.
# there's even a "notice" helper already created, so you can
# do something like the following in your layout instead:
View gist:1975752
1 2 3 4 5 6 7 8 9 10
class PostsController < ActionController::Base
def create
Post.create(post_params)
end
def update
Post.find(params[:id]).update_attributes!(post_params)
end
 
private
View users.yml
1 2 3 4
one:
email: e@mail.com
encrypted_password: <%= User.new.send(:password_digest, "password") %>
authentication_token: <%= User.authentication_token %>
View iis7-wordpress-big-file-uploads_web.config.xml
1 2 3 4 5 6 7 8 9 10
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
 
<!-- snip -->
 
<!-- enables files up to 64MB -->
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="65536000" /> <!-- really? this is in bytes, not kb -->
View koan-greed-score.rb
1 2 3 4 5 6 7 8 9
# Ruby Koans - Greed Game - scoring method
# from http://rubykoans.com http://edgecase.com
 
# * A set of three ones is 1000 points
# * A set of three numbers (other than ones) is worth 100 times the
# number. (e.g. three fives is 500 points).
# * A one (that is not part of a set of three) is worth 100 points.
# * A five (that is not part of a set of three) is worth 50 points.
# * Everything else is worth 0 points.
View Rails-3-App-Template.rb
1 2 3 4 5 6 7 8 9 10
# create fresh git repo
git :init
git :add => '.'
git :commit => '-a -m "fresh rails app"'
 
# include gems
gem 'rspec', '>= 2.0.0.beta.19', :group => :test
gem 'rspec-rails', '>= 2.0.0.beta.19', :group => :test
gem 'cucumber', '>= 0.8.5', :group => :test
gem 'cucumber-rails', '>= 0.3.2', :group => :test
Something went wrong with that request. Please try again.