To add a conda environment to the list of environments:
$ source activate thisenv
(thisenv) $ pip install ipykernel
(thisenv) $ python -m ipykernel install --user --name thisenv
await window.Excel.run(async (context) => { | |
// do something | |
await context.sync(); | |
}); |
# 建立一個名稱為 tf2 的虛擬環境,並指定python 版本為 3.6 | |
conda create -n tf2 python=3.6 | |
# 啟動 tf2 虛擬環境 | |
conda activate tf2 | |
# 安裝 tensorflow 2 | |
pip install tensorflow | |
# 安裝 PIL 套件 | |
conda install pillow |
<?php | |
$ipAddress=$_SERVER['REMOTE_ADDR']; | |
$matches=array(); | |
echo 'IP:' . $ipAddress . '<br>'; | |
# Execute arp | |
$arp=`arp -a $ipAddress`; |
{ | |
"responses": [ | |
{ | |
"faceAnnotations": [ | |
{ | |
"boundingPoly": { | |
"vertices": [ | |
{ | |
"x": 669, | |
"y": 324 |
{ | |
"responses": [ | |
{ | |
"webDetection": { | |
"webEntities": [ | |
{ | |
"entityId": "/m/0105pbj4", | |
"score": 0.8895, | |
"description": "Google Cloud Platform" | |
}, |
{ | |
"requests": [ | |
{ | |
"image": { | |
"source": { | |
"gcsImageUri": "gs://[你的bucket名稱]/selfie.png" | |
} | |
}, | |
"features": [ | |
{ |
{ | |
"requests": [ | |
{ | |
"image": { | |
"source": { | |
"gcsImageUri": "gs://[你的bucket名稱]/donuts.png" | |
} | |
}, | |
"features": [ | |
{ |
# 取得專案ID | |
export PROJECT_ID=$(gcloud info --format='value(config.project)') | |
# Cloud Storage buckets的名稱,格式為[你的專案ID]-upload | |
export BUCKET_NAME=${PROJECT_ID}-upload | |
# 建立Bucket | |
gsutil mb gs://${BUCKET_NAME} | |
# 檢查一下Bucket是否成功建立 |
{ | |
"requests": [ | |
{ | |
"image": { | |
"source": { | |
"gcsImageUri": "gs://[你的bucket名稱]/donuts.png" | |
} | |
}, | |
"features": [ | |
{ |