Goal:
- If
git push
onmaster
branch - Then sync files onto server and deploy (e.g., running
yarn run build
or any other scripts)
I’m on DigitalOcean’s server, but this works on any self hosted servers.
Continue readinggit push
on master
branchyarn run build
or any other scripts)I’m on DigitalOcean’s server, but this works on any self hosted servers.
Continue readingIf some hotkey doesn’t work for you, it’s likely that it got blocked by some other app in the background.
Continue readingAllowing password login will undermine the safety of server, so instead we can set up SSH login for each user.
Continue reading- src
|- components
||- CatComponent.js
||- DogComponent.js
- node_modules
/* src/components/DogComponent.js */
import CatComponent from 'components';
For importing from another directive to work like imports from node_modules
like above, configure webpack.
If you encounter a bug where all the re-established connections of a deleted div going to the top left of the screen: at the moment there’s no better solution than to delete all connections and repaint everything.
I’m using jsPlumb community version with React.
Continue readingThis is a funny one, coming from Anguar:
I came across an interesting line while I was reading The Geography of Bliss – Search For The Happiest Places In The World. The section was talking about Icelander’s admiration for failure, and it ends with, “We Americans like to think that we, too, embrace failure, and it’s true, up to a point. We love a good failure story as long as it ends with success.”
If you find the loading spinner in browser tab spinning forever, it might be due to the use of document.write()
.
This is especially useful when testing, when we only want to provide one or two of all the properties: