Skip to content

Instantly share code, notes, and snippets.

View h4's full-sized avatar
💭
I may be slow to respond.

Mikhail Baranov h4

💭
I may be slow to respond.
View GitHub Profile
@h4
h4 / qstart.md
Created November 16, 2014 11:59 — forked from vita78/qstart.md

Быстрый старт «C чего начать»

Эта статья рассказывает о том, как быстро создать свой проект с использованием принципов и полного наобора технологий БЭМ. Для изучения материала, представленного в статье, необходимо знание JavaScript'а.

Мы пошагово продемонстрируем процесс разработки простого проекта и узнаем преимущества его применения на практике.

Начнем...

Сделаем очень простой пример: создадим макет пустой страницы с блоком приветствия, который содержит текст Hello, BEM!.

@h4
h4 / Install.md
Last active August 29, 2015 14:27 — forked from pepelsbey/Install.md

System

  1. Set up iCloud Keychain
  2. Remove icons and hide Dock
  3. Default address in iMessage
  4. Install Updates
  5. Add Ru Input Sources
  6. Set up Shortcuts
  7. Add text shortcuts Text
@h4
h4 / dabblet.css
Created February 14, 2012 16:38 — forked from anonymous/dabblet.css
Свойства шрифта и блока тектса
/**
* Свойства шрифта и блока тектса
*/
body {
font-size:10px;
font-family:Helvetica, Tahoma, sans-serif;
line-height:1.5;
/* font: 10px/1.5 Helvetica, Tahoma, sans-serif;*/
padding:20px;
@h4
h4 / dabblet.css
Created May 22, 2012 21:33 — forked from tyv/dabblet.css
Untitled
div
{
position: relative;
width: 400px;
height: 400px;
border: 1px solid red;
}
@h4
h4 / dabblet.css
Created July 11, 2012 15:13 — forked from kizu/dabblet.css
Vertical fixed centering by inline-blocks
/* Vertical fixed centering by inline-blocks */
.container {
position: fixed;
top: 0;
bottom: 0;
left: -9999px;
}
.container:after {
content: "";
display: inline-block;
@h4
h4 / uri.js
Created September 6, 2012 10:12 — forked from jlong/uri.js
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
@h4
h4 / dabblet.css
Created January 21, 2013 20:41 — forked from tyv/dabblet.css
Untitled
body
{
background: pink
}
.popup
{
position: relative;
width: 200px;
@h4
h4 / capture.sh
Last active December 14, 2015 08:08 — forked from ftomza/gist:5028891
if pgrep gst-launch
then
pkill gst-launch
else
DIR=`date "+%Y-%m-%d-%H:%M:%S"`
mkdir $DIR
gst-launch \
flvmux name=camera ! filesink location="$DIR/camera.flv" \
flvmux name=screen ! filesink location="$DIR/screen.flv" \
\
@h4
h4 / gt.js
Created January 28, 2016 06:28
/* global Resizer: true */
/**
* @fileoverview
* @author Igor Alexeenko (o0)
*/
'use strict';
(function() {
@h4
h4 / after.conf
Last active November 30, 2016 08:11 — forked from pepelsbey/after.conf
server {
listen 80;
listen [::]:80;
server_name wsd.events www.wsd.events;
return 301 https://wsd.events$request_uri;
}
server {
listen 443 ssl http2;