VS Code Meetup Book 目次
https://techbookfest.org/product/5691779347120128
- 1.Hello VS Code ハンズオン
- 1.1. VS Code の画面と、ワークスペースを理解しよう
- ワークスペースとは
- 1.1. VS Code の画面と、ワークスペースを理解しよう
- VS Code の画面構成
| #!/bin/python | |
| import time | |
| import subprocess | |
| TERMINAL_APP = "gnome-terminal" | |
| def run(command: list[str]) -> list[str]: | |
| return subprocess.run(command, capture_output=True, encoding="ascii").stdout.strip().splitlines() | |
| def toggle_terminal(): |
| import array, time | |
| from machine import Pin | |
| import rp2 | |
| @rp2.asm_pio(sideset_init=rp2.PIO.OUT_LOW, out_shiftdir=rp2.PIO.SHIFT_LEFT, autopull=True, pull_thresh=24) | |
| def _ws2812(): | |
| T1 = 2 | |
| T2 = 5 | |
| T3 = 3 | |
| wrap_target() |
| import time | |
| from machine import I2C, Pin | |
| _ADDR = 0x5B | |
| class CCS811: | |
| def __init__(self, i2c: I2C): | |
| self._i2c = i2c |
| from machine import I2C, Pin | |
| import time | |
| _AQM1602_ADDR = 0x3E | |
| class LCD: | |
| def __init__( | |
| self, | |
| i2c: I2C, |
| set -xe | |
| fio -io_size=30g -runtime=10 -direct=1 -invalidate=1 -ioengine=posixaio -iodepth=1 -group_reporting -rw=read -size=30g -directory=./ -bs=20m -numjobs=1 -name=sequencial-read -output=./sequencial-read.txt | |
| fio -io_size=30g -runtime=10 -direct=1 -invalidate=1 -ioengine=posixaio -iodepth=1 -group_reporting -rw=write -size=30g -directory=./ -bs=20m -numjobs=1 -name=sequencial-read -output=./sequencial-write.txt | |
| fio -io_size=1g -runtime=10 -direct=1 -invalidate=1 -ioengine=posixaio -iodepth=1 -group_reporting -rw=randread -size=1g -directory=./ -bs=4k -numjobs=1 -name=random-read-4KB-1Thread -output=./random-read-4K-1Thread.txt | |
| fio -io_size=1g -runtime=10 -direct=1 -invalidate=1 -ioengine=posixaio -iodepth=1 -group_reporting -rw=randwrite -size=1g -directory=./ -bs=4k -numjobs=1 -name=random-read-4KB-1Thread -output=./random-read-4K-1Thread.txt | |
| fio -io_size=1g -runtime=10 -direct=1 -invalidate=1 -ioengine=posixaio -iodepth=1 -group_reporting -rw=randread -size=1g -directory=./ -bs=4k -numjobs=8 -name=random |
VS Code Meetup Book 目次
https://techbookfest.org/product/5691779347120128
一昨年の冬以降、Lily58 Proを2つ買わせていただき、私にとって自作キーボードにハマるきっかけとなり、非常に楽しく使わせていただいていました。
どうしても以下の点を実現したく、自作キーボードを設計しました。
| // https://github.com/golang/go/issues/29928#issuecomment-458743053 | |
| package main | |
| import ( | |
| "crypto/tls" | |
| "flag" | |
| "log" | |
| "net" | |
| "net/http" | |
| "net/http/httputil" |
MacBookPro でも動作すると思います。(The followings work on other MacBookPro.)
自分の環境では、以下は動作しませんでした。(WiFi on MacBookAir does not work on my machine.)