(Serial port or com port? - Serial ports are often refered as COM ports. It is the same to be short. You can read abut it in the Wiki article )
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
use rand::prelude::*; | |
struct Node { | |
name: String, | |
children: Vec<Node>, | |
} | |
impl Node { | |
pub fn new(name: &str) -> Self { | |
Self { |
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
xboxdrv \ | |
--evdev /dev/input/event15 \ | |
--evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_Z=x2,ABS_RZ=y2,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y \ | |
--axismap -Y1=Y1,-Y2=Y2 \ | |
--mimic-xpad --evdev-debug \ | |
--evdev-keymap BTN_A=a,BTN_B=b,BTN_X=x,BTN_Y=y,BTN_TR=rb,BTN_TR2=rt,BTN_TL=lb,BTN_TL2=lt,BTN_START=start,BTN_SELECT=back,BTN_THUMBL=tl,BTN_THUMBR=tr,BTN_MODE=guide \ | |
--slient \ | |
--endev-debug | |
# left: to which name |
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
from bs4 import BeautifulSoup | |
import requests | |
import os | |
import wget | |
import json | |
from urllib.parse import unquote | |
import urllib.request | |
url = "https://c.rcex.live:8/SF/HiresMusic/" | |
completedList = [] |
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
#!/bin/bash | |
LISTS=$(git verify-pack -v .git/objects/pack/pack-*.idx | sort -k 3 -g | tail -5) | |
for item in ${LISTS}; do | |
if [ $(expr length ${item}) -eq 40 ]; then | |
git rev-list --objects --all | grep ${item} | |
fi | |
done |