# add repo
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
# Update & install
sudo apt update
nc
command Unix
nc -vz 192.0.1.1 -Port 3306
Test-NetConnection
command Windows
Test-NetConnection -ComputerName 192.0.1.1 -Port 3306
Install googleapis
npm i googleapis
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
package main | |
import ( | |
"bytes" | |
"encoding/base64" | |
"errors" | |
"fmt" | |
"image" | |
"image/jpeg" | |
_ "image/png" |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<transformation> | |
<info> | |
<name>enc_dec_password</name> | |
<description/> | |
<extended_description/> | |
<trans_version/> | |
<trans_type>Normal</trans_type> | |
<directory>/</directory> | |
<parameters> |
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
import os | |
import shutil | |
from minio import Minio | |
from minio.datatypes import Object | |
from minio.helpers import ObjectWriteResult | |
from zipfile import ZipFile | |
S3_ENDPOINT = 's3.ap-southeast-3.amazonaws.com' | |
S3_CLIENT_ID = 'ABC' | |
S3_CLIENT_SECRET = 'BBB' |
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 calcOut(wh, padding, kernelSize, stride) { | |
return ((wh + 2*padding - kernelSize ) / stride) + 1; | |
} | |
// for image file 32x32 pixels | |
console.log(calcOut(32, 1, 3, 1)); // conv1 = 32 | |
console.log(calcOut(32, 1, 3, 1)); // conv2 = 32 | |
console.log(calcOut(32, 0, 2, 2)); // maxpool1 = 16 | |
console.log(16*16*32); // flattening result = 8192 | |
console.log("----------------"); |
NewerOlder