Dunking
Training Plan:
Day 1:
- Squats (3 Sets of 5 Reps)
- Lunges (3 Sets of 10 Reps)
- Frog Jumps (5 Sets of 10 Reps)
- Box Jumps (3 Sets of 10 Reps)
// setup.js | |
import hook from 'css-modules-require-hook' | |
import sass from 'node-sass' | |
hook({ | |
extensions: [ '.scss' ], | |
preprocessCss: data => sass.renderSync({ data }).css | |
}) | |
// getComponent is a function that returns a promise for a component | |
// It will not be called until the first mount | |
function asyncComponent(getComponent) { | |
return class AsyncComponent extends React.Component { | |
static Component = null; | |
state = { Component: AsyncComponent.Component }; | |
componentWillMount() { | |
if (!this.state.Component) { | |
getComponent().then(Component => { |
function ShowAutocompletion(obj) { | |
// Disable default autocompletion for javascript | |
monaco.languages.typescript.javascriptDefaults.setCompilerOptions({ noLib: true }); | |
// Helper function to return the monaco completion item type of a thing | |
function getType(thing, isMember) { | |
isMember = (isMember == undefined) ? (typeof isMember == "boolean") ? isMember : false : false; // Give isMember a default value of false | |
switch ((typeof thing).toLowerCase()) { | |
case "object": |
Dunking
Training Plan:
Day 1:
If you want to publish packages to your private registry, e.g. to jfrog.io/Verdaccio/... you should note some important things:
To authenticate against the private repository, you've to use the npm cli tool. But first you should get your API access token. That's safer than using your password.
npm adduser --registry https://<registry_url>/<api_path>/ --always-auth
node_modules/ |