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
Style/FrozenStringLiteralComment:
EnforcedStyle: never
Layout/AccessModifierIndentation:
EnforcedStyle: outdent
Layout/EmptyLinesAroundAccessModifier:
Enabled: false
Layout/ExtraSpacing:
View gist:73d14217edd4280cdd1c3ce4ea3ef325
swagger: '2.0'
info:
version: '1.0'
title: Nightingale API
description: Перед вами документация по Nightingale API (система управления контентом). Пока API без версионирования. Звёздочками отмечены обязательные поля. В двойных фигурных {{скобках}} указаны переменные, заданные в environment.
host: example.com
basePath: /
schemes:
- http
consumes:
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'
/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:32:in
View gist:1a680c5d7818f2b3ddba34bd7ff918cb
Retrieving cheshire-5.7.0.jar from https://clojars.org/repo/
Retrieving instaparse-1.4.5.jar from https://clojars.org/repo/
Retrieving jackson-dataformat-cbor-2.8.6.jar from https://repo1.maven.org/maven2/
Retrieving jackson-core-2.8.6.jar from https://repo1.maven.org/maven2/
Retrieving jackson-dataformat-smile-2.8.6.jar from https://repo1.maven.org/maven2/
clojure.lang.ExceptionInfo:
data: {:file "parser.clj", :line 85}
java.lang.NullPointerException:
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: www.flickr.com has multiple addresses; using 188.125.93.39
traceroute to flickr-panda-police.a00.yahoodns.net (188.125.93.39), 64 hops max, 52 byte packets
1 10.167.83.241 (10.167.83.241) 2.211 ms 1.646 ms 1.577 ms
2 lynx.imedia.ru (10.167.0.254) 0.346 ms 0.341 ms 0.386 ms
3 asr1001-0.imedia.ru (91.230.26.222) 1.307 ms 1.079 ms 1.072 ms
4 83.242.160.217 (83.242.160.217) 1.432 ms 1.649 ms 1.493 ms
5 a197-cr04-be6.77.msk.stream-internet.net (195.34.59.13) 2.921 ms 2.042 ms 3.471 ms
6 a197-cr04-be6.101.msk.stream-internet.net (212.188.55.2) 1.959 ms * 1.496 ms
7 a197-cr03-ae3.10.msk.stream-internet.net (195.34.49.113) 1.499 ms 1.510 ms *
8 a197-cr04-be19.10.msk.stream-internet.net (212.188.55.25) 43.745 ms 44.104 ms 43.927 ms
View ru.yml
ru:
spree:
master: Master
prices: Цены
show_currency_selector: Показывать переключатель валюты
supported_currencies: Поддерживаемые валюты
allow_currency_change: Разрешить смену валюты
variant_prices_search_placeholder: Искать по коду SKU или названию
notice:
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.