Skip to content

Instantly share code, notes, and snippets.

View robhrt7's full-sized avatar

Robert Haritonov robhrt7

View GitHub Profile
@robhrt7
robhrt7 / organisation.css
Last active August 29, 2015 13:56
CSS organisation
/*
CSS organisation principles
==============================================================================================
*/
.elem-no-rules {}
.elem-no-rules_child {
display: inline-block;
}
@robhrt7
robhrt7 / comments.css
Last active August 29, 2015 13:56
Комментарии в CSS
/*
Комментарии в CSS
==============================================================================================
*/
/*
Нужно комментировать все не однозначные свойства и значения.
*/
@robhrt7
robhrt7 / order.css
Last active August 29, 2015 13:56
CSS properties order
/*
CSS properties order
==============================================================================================
*/
.class {
position: relative;
right: 0;
left: 0;
z-index: 77;
@robhrt7
robhrt7 / headings.css
Last active August 29, 2015 13:56
CSS headings
/*
CSS hedings
==============================================================================================
*/
/* Level 1
---------------------------------------------------------------------------------- */
.somecode {
@robhrt7
robhrt7 / devshelf.sh
Last active August 7, 2021 21:06
Ubuntu init.d service example for nodeJS app with forever
#!/bin/bash
#
# description: DevShelf service
# processname: node
# pidfile: /var/run/devshelf.pid
# logfile: /var/log/devshelf.log
#
# Based on https://gist.github.com/jinze/3748766
#
# To use it as service on Ubuntu:

Port Forwarding in Mavericks (80 to 8080)


Guide to add localhost:80 to localhost:8080 forwarding.

Since Mavericks stopped using the deprecated ipfw (as of Mountain Lion), we'll be using pf to allow port forwarding.

####1. anchor file

@robhrt7
robhrt7 / Fronteers_2013_text_ru.md
Last active December 26, 2015 03:49 — forked from h4/1.fronteers.dump.md
Структурированная версия текстовой трансляции c Fronteers 2013 от @webstandards_up

Текстовая трансляция с Fronteers 2013

Большое спасибо @webstandards_up за текстовую трансляцию!

Вступление

Тест Мы начинаем текстовую трансляцию Fronteers 2013, двухдневной конференции в Амстердаме — http://t.co/QB5SYQ3cMx

Пол Айриш из Google открывает шестую конференцию Fronteers. Россия на шестом месте по количеству участников, например.

@robhrt7
robhrt7 / dabblet.css
Created September 7, 2013 15:28
Untitled
.item {display:block}
.item_rank_0 { display: none; }
.item:last-of-type { font-weight: bold; }
@robhrt7
robhrt7 / dabblet.css
Created August 26, 2013 09:49
Untitled
@keyframes bgg {
from {background: yellow;}
to {background: blue;}
}
.anim {
width: 200px;
height: 200px;
@robhrt7
robhrt7 / gist:5771971
Last active December 18, 2015 10:59
Hoodie local-tld install error - npm ERR! weird error 126
operatino:Apps operatino$ npm install -g local-tld
npm http GET https://registry.npmjs.org/local-tld
npm http 304 https://registry.npmjs.org/local-tld
npm http GET https://github.com/sstephenson/dnsserver.js/archive/library.tar.gz
npm http GET https://registry.npmjs.org/watchfd
npm http GET https://registry.npmjs.org/http-proxy
npm http 304 https://registry.npmjs.org/watchfd
npm http 304 https://registry.npmjs.org/http-proxy
npm http 200 https://github.com/sstephenson/dnsserver.js/archive/library.tar.gz
npm http GET https://registry.npmjs.org/colors