- これは Zig ドキュメント 0.10.1 を DeepL Pro と ChatGPT を利用して翻訳したものです。
- 一部 master なモノもあります、ごちゃ混ぜです
- 自分用に翻訳しています
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
#[ | |
Author: Ward | |
Example of GetUserName | |
References: | |
https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getusernamea | |
]# | |
import winim/lean |
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
#include "M5StickCPlus.h" | |
#include <Wire.h> | |
// lcd | |
uint8_t brightnessLevel = 8; | |
uint8_t RotateSet = 1; // for right finger | |
// buttuns | |
#define BTN_A_PIN 37 | |
#define BTN_B_PIN 39 |
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
# https://gist.github.com/FranzDiebold/898396a6be785d9b5ca6f3706ef9b0bc | |
# https://gist.github.com/okld/0aba4869ba6fdc8d49132e6974e2e662 | |
# https://github.com/komodovaran/stateful_streamlit_enterprise/tree/master/src | |
from streamlit.report_thread import get_report_ctx | |
from streamlit.server.server import Server | |
from streamlit.hashing import _CodeHasher | |
class _SessionState: |
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
using System.IO; | |
namespace ZapAll | |
{ | |
class Program | |
{ | |
private static readonly char separator = Path.DirectorySeparatorChar; | |
static void Main(string[] args) | |
{ |
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
# Untitled - By: mongonta - 金 4月 23 2021 | |
from Maix import GPIO | |
from fpioa_manager import * | |
from board import board_info | |
import os, lcd, image, time, sensor | |
##################################################################### | |
# Settings for M5StickV. Maix series should fix the following lines. | |
lcd.init(type=3) | |
fm.register(board_info.BUTTON_A, fm.fpioa.GPIO1, force=True) |
大いに参考にさせていただいた記事: ラズパイに向けてRustをクロスコンパイル!
以下はUbuntu 20.04 LTS on WSL2で確認済み
-
Rustをインストール
-
arm用のgcc一式を入れる
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
# PCD8544 (Nokia 5110) LCD sample for Raspberry Pi Pico | |
# Required library: | |
# https://github.com/mcauser/micropython-pcd8544 | |
# And this sample script is based on above repository. | |
# Connections: | |
# [pcd8544:pico(physical pin)] | |
# Gnd: Pico GND (38) | |
# BL : Pico GP28(34) | |
# Vcc: Pico 3V3 (36) |
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 pyocr | |
import cv2 | |
import numpy as np | |
import pyocr.builders | |
import matplotlib.pyplot as plt | |
from PIL import Image, ImageDraw, ImageFont | |
## 参考:https://qiita.com/mo256man/items/82da5138eeacc420499d | |
def cv2_putJPText(img, text, org, fontFace='C:\Windows\Fonts\HGRPP1.TTC', fontScale=10, color=(255,0,0), mode=0): | |
""" |
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
[dependencies] | |
rusqlite = "0.24.0" |
NewerOlder