class ListNode:
def __init__(self, id, name ,father = None):
self.id = id
self.father = father
self.name = name
class Solution(object):
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 | |
export LANG=en_US.UTF-8 | |
RED="\033[31m" | |
GREEN="\033[32m" | |
YELLOW="\033[33m" | |
PLAIN="\033[0m" | |
red(){ |
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 sys | |
from PySide6.QtWidgets import QApplication, QMainWindow | |
from PySide6.QtWebEngineWidgets import QWebEngineView | |
class WebMap(QWebEngineView): | |
def __init__(self): | |
super().__init__() | |
self.setHtml(f''' |
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 sys | |
from PySide6.QtWidgets import QApplication, QMainWindow, QVBoxLayout, QWidget, QLabel, QPushButton | |
from PySide6.QtCore import QThread, Signal | |
import pyqtgraph as pg | |
import numpy as np | |
import random | |
import time | |
class SerialThread(QThread): | |
data1_received = Signal(float) |
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 sys | |
from PySide6.QtWidgets import QApplication, QMainWindow, QVBoxLayout, QWidget, QLabel | |
from PySide6.QtCore import QThread, Signal | |
import serial | |
import numpy as np | |
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas | |
from matplotlib.figure import Figure | |
import random | |
import time |
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 machine import Pin, Timer | |
#PIN | |
#GPIOPA10 XIAOSAMD2 | |
#GPIOPA09 XIAOSAMD5 | |
#GPIOPA08 XIAOSAMD4 | |
#GPIOPA07 XIAOSAMD8 | |
#GPIOPA06 XIAOSAMD10 | |
#GPIOPA05 XIAOSAMD9 | |
#GPIOPA4 XIAOSAMD1 PA04 / A1/D1 |
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
#include <TFT_eSPI.h> | |
#include "Free_Fonts.h" | |
TFT_eSPI tft; | |
TFT_eSprite spr = TFT_eSprite(&tft); | |
#define SCREEN_WIDTH 320 // Wio Terminal Maximum Width | |
#define SCREEN_HIGH 240 // Wio Terminal Maximum Height | |
#define PIXEL 4 // Width of one letter | |
const static unsigned int FONT_ROW_HEIGHT = 22; // The height of a letter |
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
# lxpanel <profile> config file. Manually editing is not recommended. | |
# Use preference dialog in lxpanel to adjust config when you can. | |
Global { | |
edge=top | |
allign=left | |
margin=0 | |
widthtype=percent | |
width=100 | |
height=36 |
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
### Keybase proof | |
I hereby claim: | |
* I am tianrking on github. | |
* I am tianrking (https://keybase.io/tianrking) on keybase. | |
* I have a public key whose fingerprint is 6E4A A8FB 0AB2 BD5D D601 FB2D 1E76 9180 CD44 A3C4 | |
To claim this, I am signing this object: |
I hereby claim:
- I am tianrking on github.
- I am tianrking (https://keybase.io/tianrking) on keybase.
- I have a public key whose fingerprint is 9588 81BB 1A1E ECA5 EA7D 5964 1D8C 2FB8 796A B3E2
To claim this, I am signing this object:
NewerOlder