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
1) Create a branch with the tag | |
git branch {tagname}-branch {tagname} | |
git checkout {tagname}-branch | |
2) Include the fix manually if it's just a change .... | |
git add . | |
git ci -m "Fix included" | |
or cherry-pick the commit, whatever is easier | |
git cherry-pick {num_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
// html | |
window.injectors.baseUrl = '<?= urlHelper('') ?>'; | |
// mixins/injectors.js | |
const injectorsObj = {}; | |
// eslint-disable-next-line no-undef | |
Object.keys(window.injectors).forEach((injector) => { |
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
{ | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", | |
"disable_tab_abbreviations_on_auto_complete": false, | |
"draw_white_space": "all", | |
"fade_fold_buttons": false, | |
"font_face": "Operator Mono Book", | |
"font_options": |
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
import jquery from 'jquery'; | |
// IIFE | |
export default (function(testLib){ | |
testLib(jquery, window, document); | |
}(function($, w, d){ | |
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
import { round10 } from 'round10'; | |
export function formatMaxDataUnit(quantity, currentUnit = 'Bytes') { | |
if (quantity < 1024) { | |
return `${round10(quantity, -2)} ${currentUnit}`; | |
} | |
const nextUnit = { | |
Bytes: 'KB', | |
KB: 'MB', |
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
shouldComponentUpdate(nextProps, nextState) { | |
console.log('props') | |
console.log(this.props); | |
console.log(nextProps); | |
console.log(this.props === nextProps); | |
console.log('state') | |
console.log(this.state); | |
console.log(nextState); |
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
(function () { | |
var _log = console.log; | |
console.log = function () { | |
var args = Array.prototype.map.call(arguments, function (arg) { | |
return typeof arg.toJS === "function" ? arg.toJS() : arg; | |
}); | |
return _log.apply(console, args); | |
}; | |
})(); |
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
npm i --save babel-plugin-transform-class-properties babel-polyfill babel-preset-es2015 babel-preset-react babel-register babelify browserify dotenv es6-promise forever koa koa-body koa-compress koa-helmet koa-nunjucks-render koa-router koa-static node-fetch node-sass parallelshell ramda react react-dom uglify-js uglifyify whatwg-fetch | |
npm i --save-dev browser-sync nodemon watchify |
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
sudo kill `sudo lsof -t -i:9001` |
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 fetch <remote> <rbranch>:<lbranch> |