All processes in ZSH/Bash under job control are in 3 states: foregrounded, backgrounded and suspended.
# run command in the foreground
command
# run commend in the background
import { useEffect } from "react"; | |
const useOutsideClick = (ref, callback) => { | |
const handleClick = e => { | |
if (ref.current && !ref.current.contains(e.target)) { | |
callback(); | |
} | |
}; | |
useEffect(() => { |
import createValidator from 'joi_redux_form.js'; | |
import { reduxForm } from 'redux-form'; | |
const schema = { | |
name: Joi.string().required(), | |
description: Joi.string().required(), | |
}; | |
function ExampleForm(props) { | |
return ( |
/* eslint-env mocha */ | |
const test = require('assert') | |
const {validate} = require('./') | |
console.log(Object.getPrototypeOf(validate)) | |
describe('Schemas Validation', () => { | |
it('can validate a booking object', (done) => { | |
const now = new Date() | |
now.setDate(now.getDate() + 1) |
People
![]() :bowtie: |
๐ :smile: |
๐ :laughing: |
---|---|---|
๐ :blush: |
๐ :smiley: |
:relaxed: |
๐ :smirk: |
๐ :heart_eyes: |
๐ :kissing_heart: |
๐ :kissing_closed_eyes: |
๐ณ :flushed: |
๐ :relieved: |
๐ :satisfied: |
๐ :grin: |
๐ :wink: |
๐ :stuck_out_tongue_winking_eye: |
๐ :stuck_out_tongue_closed_eyes: |
๐ :grinning: |
๐ :kissing: |
๐ :kissing_smiling_eyes: |
๐ :stuck_out_tongue: |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000