Skip to content

Instantly share code, notes, and snippets.

Working from home

Aleksey Kurepin foxweb

Working from home
Block or report user

Report or block foxweb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .rubocop.yml
EnforcedStyle: never
EnforcedStyle: outdent
Enabled: false
View gist:73d14217edd4280cdd1c3ce4ea3ef325
swagger: '2.0'
version: '1.0'
title: Nightingale API
description: Перед вами документация по Nightingale API (система управления контентом). Пока API без версионирования. Звёздочками отмечены обязательные поля. В двойных фигурных {{скобках}} указаны переменные, заданные в environment.
basePath: /
- http
View gist:ea2b90bcb7e6da7320703f5c87bf95e7
2017-07-10 13:54:32 +0300: Rack app error: #<Faraday::ConnectionFailed>
/usr/local/opt/rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/net-http-persistent-2.9.4/lib/net/http/persistent.rb:641:in `rescue in connection_for'
/usr/local/opt/rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/net-http-persistent-2.9.4/lib/net/http/persistent.rb:589:in `connection_for'
/usr/local/opt/rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/net-http-persistent-2.9.4/lib/net/http/persistent.rb:994:in `request'
/usr/local/opt/rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http_persistent.rb:25:in `perform_request'
/usr/local/opt/rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:40:in `block in call'
/usr/local/opt/rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http_persistent.rb:21:in `with_net_http_connection'
View gist:1a680c5d7818f2b3ddba34bd7ff918cb
Retrieving cheshire-5.7.0.jar from
Retrieving instaparse-1.4.5.jar from
Retrieving jackson-dataformat-cbor-2.8.6.jar from
Retrieving jackson-core-2.8.6.jar from
Retrieving jackson-dataformat-smile-2.8.6.jar from
data: {:file "parser.clj", :line 85}
clojure.core/file-seq/fn core.clj: 4772
clojure.core/tree-seq/walk/fn core.clj: 4762
View gist:ed2ad1b14804d5baf557327eb1cfdb3d
rake aborted!
ActiveAdmin::DatabaseHitDuringLoad: Your file, app/models/subscription_type.rb (line 22), caused a database error while Active Admin was loading. This is most common when your database is missing or doesn't have the latest migrations applied. To prevent this error, move the code to a place where it will only be run when a page is rendered. One solution can be, to wrap the query in a Proc.Original error message: PG::UndefinedTable: ERROR: relation "subscription_types" does not exist
LINE 5: WHERE a.attrelid = '"subscription_types"'::re...
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"subscription_types"'::regclass
AND a.attnum > 0 AND NOT a.attis
View traceroute
traceroute: Warning: has multiple addresses; using
traceroute to (, 64 hops max, 52 byte packets
1 ( 2.211 ms 1.646 ms 1.577 ms
2 ( 0.346 ms 0.341 ms 0.386 ms
3 ( 1.307 ms 1.079 ms 1.072 ms
4 ( 1.432 ms 1.649 ms 1.493 ms
5 ( 2.921 ms 2.042 ms 3.471 ms
6 ( 1.959 ms * 1.496 ms
7 ( 1.499 ms 1.510 ms *
8 ( 43.745 ms 44.104 ms 43.927 ms
View ru.yml
master: Master
prices: Цены
show_currency_selector: Показывать переключатель валюты
supported_currencies: Поддерживаемые валюты
allow_currency_change: Разрешить смену валюты
variant_prices_search_placeholder: Искать по коду SKU или названию
prices_saved: Цены успешно сохранены
View gist:e738f5e60745d5625790
a = [1, 3, 5, 7, 9, 11, 13, 15]; a.each{|x| puts "x = #{x}"; a.each{|y| puts "y = #{y}"; a.each{|z| puts "#{x} + #{y} + #{z} = #{x+y+z}" } } }
View lcd.ino
//Sample using LiquidCrystal library
#include <LiquidCrystal.h>
This program will test the LCD panel and the buttons
Mark Bramwell, July 2010
You can’t perform that action at this time.