Getting started:
Related tutorials:
// var webpack = require("webpack"); | |
const path = require('path'); | |
module.exports ={ | |
entry: "./src/client.js", | |
output:{ | |
path: path.resolve(__dirname, 'dist/assets/js'), | |
filename: "bundle.js", | |
publicPath: "assets/js" | |
}, |
constructor(){this.state = {isLoading: true} } | |
componentDidMount() { this.setState ({isLoading: false})} | |
render(){ | |
return( | |
this.state.isLoading? *showLoadingScreen* : *yourPage()*) | |
} |
** copy whole text inside file to system-clipboar | |
1. goto visual mode using by pressing ( v ) | |
2. :w !pbcopy |
Getting started:
Related tutorials:
# How to echobot with XMPP, BOSH, and Strophe | |
1. Setup ejabberd(http://www.ejabberd.im/) server and setup account [email protected] | |
NOTE: localhost should be enough. If you setup something else, make sure you add it at /etc/hosts like this | |
#/etc/hosts | |
127.0.0.1 localhost.local | |
NOTE: Also download Psi(http://psi-im.org/), and make sure you can connect to your ejabberd server. | |
2. Download strophe(http://code.stanziq.com/strophe/) and place it (eg: /Users/makoto/work/sample/strophejs-1.0) |
https://www.googleapis.com/oauth2/v3/tokeninfo?access_token=<token> |
100 WordPress Code Snippets from Across the Net
https://wpmudev.com/blog/shun-the-plugin-100-wordpress-code-snippets-from-across-the-net/