Skip to content

Instantly share code, notes, and snippets.

View pepelsbey's full-sized avatar
🚧
Working Hard

Vadim Makeev pepelsbey

🚧
Working Hard
View GitHub Profile
module Jekyll
class TagIndex < Page
def initialize(site, base, dir, tag)
@site = site
@base = base
@dir = dir
@name = 'index.html'
self.process(@name)
self.read_yaml(File.join(base, '_layouts'), 'tags.html')
self.data['tag'] = tag
module Jekyll
module MarkdownLine
def markdownline(input)
site = @context.registers[:site]
converter = site.getConverterImpl(Jekyll::Converters::Markdown)
converter.convert(input).gsub('<p>', '').gsub('</p>', '')
end
end
end
@pepelsbey
pepelsbey / SassMeister-input-HTML.html
Created May 6, 2014 21:08
Generated by SassMeister.com.
<div class="block-one">
<div class="block-one__element"></div>
</div>
<div class="block-two">
<div class="block-two__element"></div>
</div>
@pepelsbey
pepelsbey / SassMeister-input.scss
Created June 11, 2014 13:54
Generated by SassMeister.com.
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
@mixin whatever(
$theme, // color
$options // map
) {
// …
- accessibility
- augmented-reality
- browsers:
- chrome
- firefox
- ie
- safari
- webkit
- business
- compatibility
@pepelsbey
pepelsbey / scale.scss
Last active August 29, 2015 14:04
Scale
@each $scale in 1, 2, 4, 8 {
transform:scale(1);
margin:0 0 $gap $gap;
transform:scale(1 / 2);
margin:0 (- $width / 2) ($gap - $height / 2) $gap;
transform:scale(1 / 4);
margin:0 (- ($width / 2 + $width / 4)) ($gap - ($height / 2 + $height / 4)) $gap;
@pepelsbey
pepelsbey / SassMeister-input-HTML.html
Created July 17, 2014 22:28
Generated by SassMeister.com.
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
@pepelsbey
pepelsbey / SassMeister-input-HTML.html
Created July 17, 2014 22:34
Generated by SassMeister.com.
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
@pepelsbey
pepelsbey / SassMeister-input-HTML.html
Created July 17, 2014 23:14
Generated by SassMeister.com.
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
@pepelsbey
pepelsbey / SassMeister-input-HTML.html
Created July 17, 2014 23:14
Generated by SassMeister.com.
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>