# create a new project
poetry new {project_name}
# add a package
poetry add {package_name}
# install dependencies
poetry install
This file contains 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 json | |
import subprocess | |
# This script requires gh command if you don't have it, you need to install. | |
# Run the gh command and get the output | |
user_id = input('Enter your github id: ') | |
repo_owner = input('Enter repo owner: ') | |
repo = input('Enter repo name: ') | |
limit = input('Enter limit num: ') |
#!/bin/bash
folder_path="./protocols"
output_file="./simulate_output.txt"
for file_path in $folder_path/*.py; do
echo "run $file_path" >> "$output_file"
output=$(opentrons_simulate "$file_path")
echo "$output" >> "$output_file"
when running wsl, wsl creates resolv.conf and add useless nameserver. the following is to prevent that.
sudo rm /etc/resolv.conf
sudo zsh -c 'echo "nameserver 8.8.8.8" > /etc/resolv.conf'
sudo zsh -c 'echo "[network]" > /etc/wsl.conf'
sudo zsh -c 'echo "generateResolvConf = false" >> /etc/wsl.conf'
{
"id":"6980139750690950405",
"desc":"#umortiktok #umor2021 #viraltiktok #sonrriesoloeshumor🤣",
"createTime":1625190436,
"video":{
"id":"6980139750690950405",
"height":1024,
"width":576,
"duration":8,
#!/bin/bash
# create tsconfig.json
echo "Create tsconfig.json"
touch tsconfig.json
# install packages for typescript
echo "install packages"
YARNCOMMAND='yarn add --dev typescript @types/react @types/node'
if $YARNCOMMAND ; then
This file contains 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 Scene = require("Scene"); | |
const NativeUI = require("NativeUI"); | |
const Textures = require("Textures"); | |
const Materials = require("Materials"); | |
(async function () { | |
const button1 = await Textures.findFirst("texture0"); | |
const button2 = await Textures.findFirst("texture1"); | |
const button3 = await Textures.findFirst("texture2"); |
var intersect = function(nums1, nums2) {
const result = [];
hashMap = {};
for(let i=0; i<nums1.length; i++) {
// console.log(num);
if(hashMap[nums1[i]]) {
hashMap[nums1[i]] +=1;
} else {
$ openssl genrsa 2048 > server.key
$ openssl req -new -key server.key > server.csr
$ openssl x509 -days 3650 -req -signkey server.key < server.csr > server.crt
ssl
server.key
server.csr
server.crt
NewerOlder