See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
// Paste these lines into website's console (Win/Linux: Ctrl + Shift + I / Mac: Cmd + Alt + I) | |
if(!!window.React || | |
!!document.querySelector('[data-reactroot], [data-reactid]') || | |
Array.from(document.querySelectorAll('*')).some(e => e._reactRootContainer !== undefined || Object.keys(e).some(k => k.startsWith('__reactContainer'))) | |
) | |
console.log('React.js'); | |
if(!!document.querySelector('script[id=__NEXT_DATA__]')) | |
console.log('Next.js'); |
I've been using create-react-app lately as I find it very useful to kick things off while starting a project. I almost always follow JavaScript Standard Style and I found myself googling it so I figured out I should write it down.
I really like keeping dependencies as local as possible but if you prefer you can install it globally.
yarn add standard --dev
or
var name = $(this.el).find("input[name='connname']").val(); | |
var path = $(this.el).find("select[name='csvpath']").val(); | |
var enabled = false; | |
if(schema.has.been.created){ | |
var mondrianschema = $(this.el).find(".schemaselect").val(); | |
enabled = true; | |
} | |
var c = "type=OLAP\n"+ | |
"name="+name+"\n"+ | |
"driver=mondrian.olap4j.MondrianOlap4jDriver\n"+ |
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
/* CSS */ | |
var port = process.env.C9_PORT || parseInt(argv[2], 10) || 8081;
var backend_host = argv[3] || 'repo.meteorite.bi';
var backend_port = argv[4] || 9999;
var x = 'foo';
var exists = 0 != $('#select-box option[value=" + x + "]').length;