Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
$ npm i -S react redux react-redux react-dom webpack@2* webpack-dev-server@2* | |
$ npm i -D babel-core babel-loader babel-preset-es2015 babel-preset-react | |
// webpack.config.js | |
module.exports = { | |
context: __dirname + '/src', | |
entry: { | |
app: './index.js' | |
}, |
|
{ | |
"name": "react-estudo", | |
"version": "1.0.0", | |
"description": "", | |
"main": "webpack.config.js", | |
"dependencies": { | |
"mappersmith": "^0.13.3", | |
"react": "^15.2.1", | |
"react-dom": "^15.2.1", | |
"react-remarkable": "^1.1.1" |
SELECT drar.PROPERTY_NAME as PROPERTY_NAME, | |
LISTAGG(dfpr.FORM_ID, ',') WITHIN GROUP (ORDER BY dfpr.FORM_ID) as FORM_ID | |
FROM DICT_RESERVED_ACCOUNT_R drar JOIN | |
DICT_FORM_PROPS_RATIO dfpr | |
ON dfpr.PROPERTY_NAME= drar.PROPERTY_NAME | |
WHERE drar.PROPERTY_NAME = 'title' | |
GROUP BY drar.PROPERTY_NAME |
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
git fetch --all | |
git reset --hard origin/master |
function declOfNum(number, titles) { | |
cases = [2, 0, 1, 1, 1, 2]; | |
return titles[ (number%100>4 && number%100<20)? 2 : cases[(number%10<5)?number%10:5] ]; | |
} | |
use: | |
declOfNum(count, ['найдена', 'найдено', 'найдены']); |
git config --global alias.co checkout | |
git config --global alias.ci commit | |
git config --global alias.st status | |
git config --global alias.br branch | |
git config --global alias.hist 'log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short' | |
git config --global alias.type 'cat-file -t' | |
git config --global alias.dump 'cat-file -p' |
const Component = React.createClass({ | |
// Метод вызовется перед установкой компонента в DOM | |
componentWillMount() { | |
console.log('I\'m going into DOM'); | |
}, | |
// Метод вызовется после установки компонента в DOM | |
componentDidMount() { |