Skip to content

Instantly share code, notes, and snippets.

View DmitriyBaklikov's full-sized avatar
🏠
Working from home

Dmitriy Baklikov DmitriyBaklikov

🏠
Working from home
View GitHub Profile
pry(main)> Spree::Wombat::Config[:push_objects]
=> ["Spree::Order", "Spree::Product", "Spree::StockItem", "Spree::Shipment"]
@DmitriyBaklikov
DmitriyBaklikov / wombat_orders.rb
Created October 20, 2015 12:14
Wombat orders pushing
namespace :wombat do
desc 'push to wombat'
task wombat_orders: :environment do
puts "\n"
puts "Starting pushing objects to Wombat at #{Time.now.in_time_zone}"
Spree::Wombat::Config[:push_objects].each do |object|
# Spree::Wombat::Client.push_batches(object)
objects_pushed_count = Spree::Wombat::Client.push_batches(object)
puts "Pushed #{objects_pushed_count} #{object} to Wombat - Done #{Time.now.in_time_zone}"
@DmitriyBaklikov
DmitriyBaklikov / wombat.rb
Created October 20, 2015 12:11
Wombat log
[PROJECT_ROOT]/vendor/gems/ruby/2.0.0/bundler/gems/spree_wombat-9f0e8496b5e5/lib/spree/wombat/client.rb:69→ validate
[PROJECT_ROOT]/vendor/gems/ruby/2.0.0/bundler/gems/spree_wombat-9f0e8496b5e5/lib/spree/wombat/client.rb:58→ push
[PROJECT_ROOT]/vendor/gems/ruby/2.0.0/bundler/gems/spree_wombat-9f0e8496b5e5/lib/spree/wombat/client.rb:37→ block in push_batches
activerecord-4.1.8/lib/active_record/relation/batches.rb:125→ find_in_batches
[PROJECT_ROOT]/vendor/gems/ruby/2.0.0/bundler/gems/spree_wombat-9f0e8496b5e5/lib/spree/wombat/client.rb:29→ push_batches
lib/tasks/wombat_orders.rake:8→ block (2 levels) in <top (required)>
lib/tasks/wombat_orders.rake:6→ each
lib/tasks/wombat_orders.rake:6→ block in <top (required)>
rake-10.4.2/lib/rake/task.rb:240→ call
rake-10.4.2/lib/rake/task.rb:240→ block in execute
<div class="home-tile">
<% if defined?(link) %>
<a href="<%= link %>">
<% end %>
<%= image_tag @homepage.send("#{section}_image".to_sym).url unless @homepage.send("#{section}_image".to_sym).blank? %>
<span class="din-up"><%= @homepage.send("#{section}_title".to_sym) %></span>
<% if defined?(link) %>
</a>
<% end %>
</div>
@DmitriyBaklikov
DmitriyBaklikov / gist:429b7b82d02555a353fd
Last active August 29, 2015 14:18
Trello user guide

Trello user guide

Intro

Trello is a collaboration tool that organizes your projects into boards. In one glance, Trello tells you what's being worked on, who's working on what, and where something is in a process and presents itself a most common Kanban board principle realization.

The main goal of this principle is not to manage developer's time, but rather to give you visibility into what is happening in the project. This enables planning work, tracking progress, and retrospecting. In this guide we will talk about productivity system, which is based on ideas from Getting Things Done and Kanban.

Everything that everyone needs to remember must be logged to Trello. Only then team would be able trust it and developers and managers won’t have to run through five notebooks to make sure that have not forgotten anything. When an idea pops up, you need to be able to capture it. This must be as effortless as possible like it's realized in Trello.

# encoding: UTF-8
require 'optparse'
require 'net/http'
require 'json'
def parse_options(argv)
opts = {}
@parser = OptionParser.new do |o|
@DmitriyBaklikov
DmitriyBaklikov / labels_guide_github.md
Last active September 8, 2023 09:04
Github Labels Guide

Github Labels Guide

1 Guide Assumptions

This guide is created to make work with labels on Github more constructive and understandable both to development and management parts of the team.