One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Animals.each do |letter, results| | |
10.times do | |
doc = Nokogiri::HTML(open("http://www.ocar.org/page.php?tut=realtor-affiliate-search-results&tid=802&pid=8&first_or_last_name=#{letter}&city=&office=&btc=&op=find_a_realtor&ftut=find-a-realtor&start=#{results_per_page}")) | |
realtors = {} | |
('a'..'z').each do |n| | |
realtors[n] = Realtor.create | |
end | |
doc.css('div.search_results_item').each do |number| | |
phone_number = /\(\d{3}\)\s\d{3}-\d{4}/.match("#{number.content}") | |
('a'..'z').each do |n| |
FactoryGirl.define do | |
factory :neutral_account, class: FinancialAccounting::Update::Neutral::Account do | |
load_sequence { FactoryGirl.generate(:sn) } | |
loaded_at { Time.now } | |
recorded_at { Time.now } | |
created_at { Time.now } | |
updated_at { Time.now } | |
factory :valid_neutral_account do | |
association :custodian, factory: :custodian |
# | |
# Autogenerated by Thrift | |
# | |
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING | |
# | |
require 'exception_types' | |
require 'shared_types' | |
class OtoplastikCustomer < Customer | |
def otoplastik? | |
true | |
end | |
def prices(article) | |
query = lambda do |merchant_code| | |
OtoplastikArticlePrice.where("otoplastik_article_id = ? AND merchant_code = ?", article.id, merchant_code).order("minimum DESC") | |
end |
resources :studentinfos do | |
get ':type' => 'studentinfos#type', constraints: { type: /\d+/ } | |
end |
#Hangman | |
import random | |
words = ["apple", "banana", "pen", "cat", "dog", "bee", "pig"] | |
print "Welcome to the Hangman game. You will have six chances to guss my secret word correctly. Good luck!" | |
word = words[random.randint(0,len(words)-1)] | |
def dash(word): | |
list = [] | |
for i in word: | |
list.append("_ ") |
#Hangman | |
import random | |
words = ["apple", "banana", "pen", "cat", "dog", "bee", "pig"] | |
print "Welcome to the Hangman game. You will have six chances to guss my secret word correctly. Good luck!" | |
word = words[random.randint(0,len(words)-1)] | |
def dash(word): | |
list = [] | |
for i in word: | |
list.append("_") |
namespace :db do | |
namespace :seed do | |
desc "Adaug medici in baza de date" | |
task :medici => :environment do | |
Medic.create!(:nume => "Serafinceanu", :prenume => "Cristian", :cod_parafa => "282828") | |
Medic.create!(:nume => "Craciun", :prenume =>"Anne-Marie", :cod_parafa =>"999") | |
end | |
end | |
end |
unless File.exists?('Gemfile') | |
File.write('Gemfile', <<-GEMFILE) | |
source 'https://rubygems.org' | |
gem 'rails', '4.0.0' | |
gem 'sqlite3' | |
GEMFILE | |
system 'bundle' | |
end |