Skip to content

Instantly share code, notes, and snippets.

View solilin's full-sized avatar

Alexey Solilin solilin

View GitHub Profile
# For pseudo attr
content
# Positions
position
top
right
bottom
left
z-index
.block{
}
.block__element{
}
.block__element-modificator{
}
.block__another_element{
@solilin
solilin / .sass-lint.yml
Last active November 8, 2016 08:07
JetRockets .sass-lint.yml
# sass-lint config generated by make-sass-lint-config v0.1.2
#
# The following scss-lint Linters are not yet supported by sass-lint:
# ChainedClasses, DisableLinterReason, PseudoElement, SelectorDepth
# SpaceAfterVariableColon, SpaceAroundOperator, TrailingWhitespace, UnnecessaryParentReference
# files:
# include: app/assets/stylesheets/**/*.sass
options:
formatter: stylish
{
"coffeescript_error": {
"level": "error"
},
"arrow_spacing": {
"name": "arrow_spacing",
"level": "warn"
},
"no_tabs": {
"name": "no_tabs",
brew tap homebrew/versions
brew install v8-315
brew link --force v8-315
gem install libv8 -- --with-system-v8
gem install therubyracer
Самые страшные команды в гите: git reset --hard и git push --force.
Команда на все случаи, когда нужно что-то отменить:
$ git reset --hard <commit>
<commit> в данном случае — та точка, к которой нужно откатиться.
Гит — лапочка и записывает абсолютно всё, что делает: новые коммиты, переключения между ветками, переписывание истории.
Всё, что вам нужно — научиться читать логи.
@solilin
solilin / reactBindingPatterns.js
Created October 18, 2017 19:09
React Binding Patterns
// Approach 1: Use React.createClass
var HelloWorld = React.createClass({
getInitialState() {
return { message: 'Hi' };
},
logMessage() {
// this magically works because React.createClass autobinds.
console.log(this.state.message);
},
@solilin
solilin / .eslintrc
Created December 8, 2017 12:38
Eslintrc
{
"extends": "airbnb",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
}
},
"rules": {

Установить homebrew

  /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Установить Ruby

Утанавливаем rbenv:

@solilin
solilin / cloudSettings
Last active April 2, 2021 12:29
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-04-02T12:29:11.337Z","extensionVersion":"v3.4.3"}