Skip to content

Instantly share code, notes, and snippets.

View arrowcircle's full-sized avatar

Oleg Bovykin arrowcircle

  • Ivy Knob
  • Berlin, Germany
View GitHub Profile
require 'open-uri'
require 'json'
require 'net/smtp'
class BlacklistChecker
API_KEY = ENV['BLACKLIST_API_KEY'] || '5b81c659e0bc66638db97663b972eb49'
attr_accessor :domain
def initialize(domain)
@domain = domain
@arrowcircle
arrowcircle / cml2.rb
Created April 23, 2013 14:47 — forked from danil/cml2.rb
module CML2
# Includes to ProductCategory model
module ProductCategory
def import node_set
::ProductCategory.delete_all
::ProductCategory.import_categories \
node_set.xpath('/КоммерческаяИнформация/Классификатор/Группы')
end