This file contains 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
#!/usr/bin/env ruby | |
require 'nokogiri' | |
require 'open-uri' | |
require 'net/http' | |
require 'cgi' | |
require 'fileutils' | |
require "date" | |
begin |
This file contains 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
#!/bin/bash | |
# Retreives and timestamps various XML feeds for later use | |
cd /Users/danielpage/Documents/BetCharts/ | |
curl http://lines.bookmaker.eu/ > bookmaker-$(date +%Y-%m-%d-%H.%M.%S).xml | |
curl http://xmlfeed.intertops.com/XMLOddsFeed/IntertopsOdds.aspx > intertops-$(date +%Y-%m-%d-%H.%M.%S).xml | |
curl http://xml.betclick.com/odds_en.xml > betclick-$(date +%Y-%m-%d-%H.%M.%S).xml |
This file contains 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
................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................<3 |
This file contains 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 CreateOptaEvents < ActiveRecord::Migration | |
def change | |
create_table :opta_events, :id => false do |t| | |
t.column :opta_game_id, :integer, :null => false | |
t.column :id, :integer, :primary => true | |
t.column :event_id, :integer | |
t.column :type_id, :integer | |
t.column :period_id, :integer | |
t.column :timeline, :integer | |
t.column :min, :integer |
This file contains 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 'nokogiri' | |
module Import | |
class F24 | |
def self.get_xml_doc | |
print "File Name > " | |
fname = gets.strip | |
pn = "#{::Rails.root.to_s}/db/match_data/#{fname}.xml" | |
puts "Path and File Name: #{pn}" |
NewerOlder