Skip to content

Instantly share code, notes, and snippets.

@bivihoba
bivihoba / Dockerfile
Created October 13, 2017 09:02
Potrace Sandbox Dockerfile
FROM alpine:3.6
RUN apk add --no-cache --update gcc make automake autoconf libtool musl-dev zlib-dev git openssl nodejs nodejs-npm imagemagick
RUN git clone https://github.com/skyrpex/potrace.git && \
cd potrace && \
autoreconf -i && \
./configure && make && make install
RUN npm install -g svgo
@bivihoba
bivihoba / Dockerfile
Created October 6, 2017 21:07
SQIP Dockerfile
FROM golang:1.9.1-alpine3.6
RUN apk add --update git openssl nodejs nodejs-npm && rm /var/cache/apk/*
RUN go get -u github.com/fogleman/primitive
RUN npm install -g sqip
RUN mkdir /sqip
@bivihoba
bivihoba / _poi.jade
Created September 20, 2016 09:57
poi example
.poi.poi_expanded
.poi__label
.poi-label.poi-label_collapsed // collapsed if poi expanded
.poi-label__icon
.poi-label__text // hidden when "poi-label_collapsed == true"
.poi__popup // visible when "poi_expanded == true"
button.poi__popup-close(data-ng-click="poi.close()")
.poi__popup-content
// Whatever
@bivihoba
bivihoba / button-mixes.html
Last active August 29, 2015 14:17
button mixes
RIA-way
<div class="b-button b-button_viewtype_standard b-membrane b-membrane_viewtype_b1" role="button" tabindex="0">Viewtype b1</div>
Link
<a class="b-link b-button b-button_viewtype_standard b-membrane b-membrane_viewtype_b1" href="#" title="">Viewtype b1</a>
Input
<input type="submit" class="b-form-field b-form-field_type_submit b-button b-button_viewtype_standard b-membrane b-membrane_viewtype_b1" name="" id="" value="Viewtype b1">
Button
<button class="b-button b-button_control_true b-button_viewtype_standard b-membrane b-membrane_viewtype_b1">Viewtype b1</button>
@bivihoba
bivihoba / default-semantic.xml
Created February 23, 2014 12:04
default-semantic.xml without special formatting
<?xml version="1.0" encoding="UTF-8" ?><default-semantic xmlns:a="http://slcf/templates/settings/bem-scheme/additional" xmlns:b="http://slcf/templates/settings/bem-scheme/block" xmlns:d="http://slcf/templates/settings/bem-scheme/data" xmlns:e="http://slcf/templates/settings/bem-scheme/element" xmlns:p="http://slcf/templates/settings/bem-scheme/pointer" xmlns:m="http://slcf/templates/settings/bem-scheme/modification" xmlns:t="http://slcf/templates/settings/bem-scheme/template" xmlns:x="http://slcf/templates/settings/bem-scheme/xhtml" xmlns:un="http://slcf/templates/settings/bem-scheme/unknown-namespace" xmlns:alxc="http://slcf/templates/settings/bem-scheme/additional-legacy-xhtml-class">
<!-- HTML document > -->
<b:xdocument tag="html" x:lang="ru" x:id="nojs" noclass="true"/>
<e:head block="xdocument" noclass="true" tag="head"/>
<e:title block="xdocument" noclass="true" tag="title"/>
<e:body block="xdocument" noclass="true" tag="body"/>
<b:xlink tag="link" noclass="true"/>
<m:style block="xlink" x:rel=
@bivihoba
bivihoba / default-semantic.xml
Last active August 29, 2015 13:56
default-semantic.xml with extra breaklines
<?xml version="1.0" encoding="UTF-8" ?><default-semantic xmlns:a="http://slcf/templates/settings/bem-scheme/additional" xmlns:b="http://slcf/templates/settings/bem-scheme/block" xmlns:d="http://slcf/templates/settings/bem-scheme/data" xmlns:e="http://slcf/templates/settings/bem-scheme/element" xmlns:p="http://slcf/templates/settings/bem-scheme/pointer" xmlns:m="http://slcf/templates/settings/bem-scheme/modification" xmlns:t="http://slcf/templates/settings/bem-scheme/template" xmlns:x="http://slcf/templates/settings/bem-scheme/xhtml" xmlns:un="http://slcf/templates/settings/bem-scheme/unknown-namespace" xmlns:alxc="http://slcf/templates/settings/bem-scheme/additional-legacy-xhtml-class">
<!-- html document > -->
<b:xdocument
tag="html"
x:lang="ru"
x:id="nojs"
noclass="true"
/>
<e:head