Skip to content

Instantly share code, notes, and snippets.

Sebastian Skałacki skalee

  • Kraków
Block or report user

Report or block skalee

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
@skalee
skalee / ASCIIDOC.adoc
Last active Apr 14, 2019
YARD render code listings incorrectly
View ASCIIDOC.adoc

In AsciiDoc…​

Ruby snippet (language specified)

two = 1 + 1
eleven = "1" + "1"
raise if Failure.problem
@skalee
skalee / Wrong.adoc
Last active Apr 9, 2019
Asciidoctor's "warnings about indexing" bug
View Wrong.adoc

Probably a bug

About this list

  1. This list has many items, which are split across several sections.

  2. List items in document include index number. That is, they are formatted like:

    1. This list has many items, which are split across several sections.
View Dramatically-Bad-Performance.dockerfile
FROM ubuntu:xenial
RUN apt-get update
# If you want custom PPAs, you need following.
RUN apt-get install -y software-properties-common
# Git is obligatory for obvious reasons.
# bzip2 provides bzip2
# cURL is necessary to download RVM.
@skalee
skalee / README.md
Last active Jul 30, 2018
SSC likes counter (GreaseMonkey)
View README.md

Public Domain.

Preview:

Preview

View How I build
git clone git@github.com:riboseinc/rnp.git
./build_macos.sh
make install
@skalee
skalee / gist:f724b3c69657aa0b836a9208b2505af1
Last active Apr 16, 2018
Mail transport encoding is difficult to set - Pry session
View gist:f724b3c69657aa0b836a9208b2505af1
[5] pry(main)> Mail::VERSION.version
=> "2.7.0"
[6] pry(main)> part = Mail::Part.new
=> #<Mail::Part:70253998469580, Multipart: false, Headers: <Content-Type: text/plain>>
[7] pry(main)> part.body = "Whatever"
=> "Whatever"
[8] pry(main)> puts part.encoded
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
@skalee
skalee / spaces.apib
Created Nov 13, 2017
How fixture resolving in Ribose API docs could look like
View spaces.apib
## Group Space
### Spaces [/spaces]
#### Index [GET]
+ Request (application/json)
+ Response 200 (application/json)
+ Attributes (object)
View gist:a66ab5953373022d1a41e32060816df1
Checking apiary.apib… FAIL
warning code 5 in line 195 - ignorning unrecognized block:
[comment]: <> (REFERENCE section)
warning code 6 in line 2667 - no value(s) specified:
`body`: (string) - Body of invitation message to the invitees
warning code 6 in line 2705 - no value(s) specified:
`s`: (string) - pagination synchronization string
warning code 6 in line 2800 - no value(s) specified:
`s`: (string) - pagination synchronization string
warning code 6 in line 2843 - no value(s) specified:
View Markdown.adoc
URI stdlib Addressable

''

"#<URI::Generic >"

"#<Addressable::URI:0x3fee8408a4f0 URI:>"

@skalee
skalee / Gemfile
Created Apr 29, 2015
Possible AMS 0.10 bug
View Gemfile
source "https://rubygems.org"
gem "active_model_serializers", github: "rails-api/active_model_serializers"
You can’t perform that action at this time.