babel change react to javascript install babel add plug ins to compile to javascript here we need react and env to convert jsx to javascript yarn global add babel-cli@6.24.1 npm install -g babel-cli babel –help sudo npm install -g babel-cli@6.24.1… Continue Reading →
react cdn https://reactjs.org/docs/cdn-links.html on index.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>my app</title> </head> <body> <div id="app"></div> <script src="https://unpkg.com/react@15/dist/react.js"></script> <script src="https://unpkg.com/react-dom@15/dist/react-dom.js"></script> <script src="/scripts/app.js"></script> </body> </html> |
on app.js
1 2 3 4 5 6 7 8 |
var template = React.createElement( "h1", { id: "someid" }, "Something new" ); var appRoot = document.getElementById('app'); ReactDOM.render(template, appRoot); |
install node and yarn create folder create folder public create file index.html and add some stuff install live-server yarn global add live-server correction npm -g install live-server live-server public
mongodb reference the following command are good to know for starting mongodb. it is well explained in the abuove link.
1 2 3 4 5 |
// this will store the data on /data/db mongod // this will store the data on the path you specified mongod --dbpath /your/path mongod --port 12345 |
coulumns = field list values coulumns rows filters slicer in pivot table filed list -> go to filed and add slicer you can add multiple slicers connect slicer to multiple pivot tables: go slicer ->options ->Report connecton sorting change date… Continue Reading →
1 2 3 4 5 |
pip install virtualenv virtualenv -p python3 myenv source myenv/bin/activate deactivate |
To be able to access flask from network:
1 2 3 4 5 6 7 8 9 10 |
from flask import Flask, render_template app = Flask(__name__) @app.route("/") def index(): return "Hello, World!" if __name__ == '__main__': app.run(port=3000,host='0.0.0.0', debug=True) |
alternative method for new version of flask as mentioned in the offical site
1 2 3 4 5 6 |
from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello, World!' |
1 2 3 |
export FLASK_APP=hello.py export FLASK_DEBUG=1 flask run --host=0.0.0.0 |
——draft———- setup the user name and email to set it up
1 2 |
git config --global user.name "your name" git config --global user.email "your@email" |
to show the current setting of git
1 |
git config --list |
or
1 2 |
git config user.name git config user.email |
or you can edit the file ~/.gitignore
1 2 3 |
[user] name = your name email = youremail@email.com |
create the repo online from the site clone the the… Continue Reading →
1 2 3 4 5 6 |
git clone https://yourname@bitbucket.org/yourname/temp.git cd temp echo "# My project's README" >> README.md git add README.md git commit -m "Initial commit" git push -u origin master |
https://www.youtube.com/channel/UC-QDfvrRIDB6F0bIO4I4HkQ/featured youtube channel
© 2019 CodingDOTNET — Powered by WordPress
Theme by Anders Noren — Up ↑
Recent Comments