# Download msys2 from https://www.msys2.org/ and open ucrt64 terminal
TARGET=$(pwd)/rust-ffmpeg1
REPO=https://github.com/zmwangx/rust-ffmpeg
FFMPEG_NAME=ffmpeg-n6.1-latest-win64-gpl-shared-6.1
FFMPEG_SRC_PREFIX=latest
FFMPEG_SRC=https://github.com/BtbN/FFmpeg-Builds/releases/download/$FFMPEG_SRC_PREFIX/$FFMPEG_NAME.zip
git clone $REPO $TARGET
if [ ! -d $TARGET/$FFMPEG_NAME ]; then
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
| # Contributer: thewh1teagle | |
| _realname=pico-sdk | |
| pkgbase=mingw-w64-${_realname} | |
| pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" | |
| pkgver=1.5.1 | |
| pkgrel=1 | |
| pkgdesc="Libraries for C/C++ development on RP2040 microcontrollers." | |
| arch=("any") | |
| mingw_arch=("mingw64" "ucrt64" "clang64") |
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
| # Contributer: thewh1teagle | |
| _realname=pico-sdk | |
| pkgbase=mingw-w64-${_realname} | |
| pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" | |
| pkgver=1.5.1 | |
| pkgrel=1 | |
| pkgdesc="Libraries and tools for C/C++ development on RP2040 microcontrollers." | |
| arch=("any") | |
| mingw_arch=("mingw32" "mingw64" "ucrt64" "clang64" "clang32") |
- Download msys2 from https://www.msys2.org/
- Install dependencies
pacman --needed -S $MINGW_PACKAGE_PREFIX-{toolchain,cmake,make,swig,autotools,lapack} git
- Clone & Build
git clone https://github.com/facebookresearch/faiss
cd faiss
Download msys2 from https://www.msys2.org/
Open MSYS2 UCRT64 terminal
Install dependencies (always use ucrt packages in ucrt terminal not mingw packages, when possible)
pacman --needed -S $MINGW_PACKAGE_PREFIX-{toolchain,cmake,libusb,arm-none-eabi-toolchain,make} gitClone Repos
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 serial | |
| if os.name == 'nt': # sys.platform == 'win32': | |
| from serial.tools.list_ports_windows import comports | |
| elif os.name == 'posix': | |
| from serial.tools.list_ports_posix import comports | |
| ports = comports() | |
| for port in ports: |
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 pty | |
| import time | |
| import random | |
| import string | |
| import termios | |
| # Create a pair of pseudo-terminals (PTYs) | |
| master, slave = pty.openpty() | |
| name = os.ttyname(slave) # Use master, not slave |
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
| // #![deny(warnings)] | |
| use std::collections::HashMap; | |
| use std::sync::{ | |
| atomic::{AtomicUsize, Ordering}, | |
| Arc, | |
| }; | |
| use futures_util::{SinkExt, StreamExt, TryFutureExt}; | |
| use tokio::sync::{mpsc, RwLock}; | |
| use tokio_stream::wrappers::UnboundedReceiverStream; |
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
| /** @type {import('tailwindcss').Config} */ | |
| export default { | |
| content: [ | |
| "./index.html", | |
| "./src/**/*.{js,ts,jsx,tsx}", | |
| ], | |
| darkMode: ["class", '[data-theme="dark"]'], | |
| theme: { | |
| extend: {}, | |
| }, |
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
| --muidocs-palette-primary-50: #F0F7FF; | |
| --muidocs-palette-primary-100: #C2E0FF; | |
| --muidocs-palette-primary-200: #99CCF3; | |
| --muidocs-palette-primary-300: #66B2FF; | |
| --muidocs-palette-primary-400: #3399FF; | |
| --muidocs-palette-primary-500: #007FFF; | |
| --muidocs-palette-primary-600: #0072E5; | |
| --muidocs-palette-primary-700: #0059B2; | |
| --muidocs-palette-primary-800: #004C99; | |
| --muidocs-palette-primary-900: #003A75; |