// Coding Horrors https://circleci.com/blog/dev-horror-stories-part-ii/
// Cool retro term https://github.com/Swordfish90/cool-retro-term
// requires npm 5.2 or newer
// lolcatjs // rainbow colors in your terminal
# EditorConfig is awesome: https://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
# Unix-style newlines with a newline ending every file | |
[*] | |
end_of_line = lf | |
insert_final_newline = true |
{ | |
// Place your snippets for javascriptreact here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", |
// map a components this.props.looks to a joined string of css module styles `styles[look1] styles[look2] ...` | |
// or allows to pass in css class names from parent | |
// <Component looks="isYellow"></Component> | |
// CSS: .isYellow { } | |
export function mapLooksToStyles(looks = '', styles = []) { | |
let customStyles = (looks && looks.trim().split(' ')) | |
|| []; | |
return customStyles.map(look => styles[look] || look).join(' '); | |
} |
// npm-check | |
// check dependency status of your project | |
// https://www.npmjs.com/package/npm-check | |
npx npm-check | |
// json-server | |
https://github.com/typicode/json-server |
// Coding Horrors https://circleci.com/blog/dev-horror-stories-part-ii/
// Cool retro term https://github.com/Swordfish90/cool-retro-term
// requires npm 5.2 or newer
// lolcatjs // rainbow colors in your terminal
Prepare release notes:
Prepare release
git checkout dev
and git rebase master
to check for any lost updates (shouldn't happen!!)git checkout master
and git merge dev
and git push
git push
git checkout master
and git merge dev
and git push
You are handed
// new version with service and $injector.get('nameOfService'); ?? | |
// ERROR-HANDLING | |
.config(function ($provide, $httpProvider) { | |
// error-interceptor | |
$provide.factory('errorHandlerInterceptor', function ($q, $rootScope) { | |
return { | |
response: function (response) { | |
// only handle remote XHR requests | |
if (response.config.url.search(/\/\//) !== -1) { |