This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var beers = ['Pils','Weißbier','Weizen']; | |
| for(var beer of beers){ | |
| console.log(beer); | |
| } | |
| //output: Pils | |
| //output: Weißbier | |
| //output: Weizen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let beerName = 'Bitburger'; | |
| let beerPrice = 1.50; | |
| console.log(`The ${beerName} cost ${beerPrice}`); | |
| // output: The Bitburger cost 1.5 | |
| let beers = `Bitburger | |
| Bolten | |
| Heineken | |
| `; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const beer = { | |
| name: 'Bitburger', | |
| price: 1.5, | |
| type: 'pils', | |
| }; | |
| const { name, type } = beer; | |
| console.log(name, type); | |
| // output: Bitburger pils |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const beer = ['Bitburger', 1.5, 'Pils']; | |
| const [name, price, type] = beer; | |
| console.log(name, price, type); | |
| // output: Bitburger 1.5 Pils |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function writeBeer({ name, type }){ | |
| console.log(name) | |
| console.log(type) | |
| } | |
| let beer = { | |
| name: 'Bitburger', | |
| type: 'Pils' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let beers = ['Bitburger','Heineken']; | |
| function logBeers (firstParameter, secondParameter) { | |
| return console.log(`${firstParameter} ${secondParameter}`); | |
| } | |
| logBeers(...beers); // output: Bitburger Heineken |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function(parameter = defaultvalue){ | |
| statements | |
| }; | |
| // MDN syntax specification | |
| function [name]([param1[ = defaultValue1 ][, ..., paramN[ = defaultValueN ]]]) { | |
| statements | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # $ pip install pydata-google-auth | |
| import pydata_google_auth | |
| credentials = pydata_google_auth.get_user_credentials( | |
| ['https://www.googleapis.com/auth/cloud-platform'], | |
| ) | |
| # Use the credentials in other libraries, such as the Google BigQuery | |
| # client library. | |
| from google.cloud import bigquery |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gcloud container clusters resize kubeflow --num-nodes=0 --region=us-central1-a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source python3/bin/activate | |
| python -m ipykernel install --user --name=tensorflow | |
| start jupyter notebooks | |
| switch kernel to Tensorflow |