function sayHi() {
console.log(name);
console.log(age);
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"version":1,"resource":"file:///Users/solilin/Workspace/onetribe/app/views/companies/reports/contracts.html.erb","entries":[{"id":"HWYB.erb","timestamp":1659259871502},{"id":"vDMc.erb","timestamp":1659259908930}]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2021-04-02T12:29:11.337Z","extensionVersion":"v3.4.3"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"extends": "airbnb", | |
"parserOptions": { | |
"ecmaVersion": 6, | |
"sourceType": "module", | |
"ecmaFeatures": { | |
"jsx": true, | |
} | |
}, | |
"rules": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Самые страшные команды в гите: git reset --hard и git push --force. | |
Команда на все случаи, когда нужно что-то отменить: | |
$ git reset --hard <commit> | |
<commit> в данном случае — та точка, к которой нужно откатиться. | |
Гит — лапочка и записывает абсолютно всё, что делает: новые коммиты, переключения между ветками, переписывание истории. | |
Всё, что вам нужно — научиться читать логи. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew tap homebrew/versions | |
brew install v8-315 | |
brew link --force v8-315 | |
gem install libv8 -- --with-system-v8 | |
gem install therubyracer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"coffeescript_error": { | |
"level": "error" | |
}, | |
"arrow_spacing": { | |
"name": "arrow_spacing", | |
"level": "warn" | |
}, | |
"no_tabs": { | |
"name": "no_tabs", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
NewerOlder