Skip to content

Instantly share code, notes, and snippets.

View shenjackyuanjie's full-sized avatar
🏠
learning at school

shenjack shenjackyuanjie

🏠
learning at school
View GitHub Profile
@ch-yx
ch-yx / superproperty.md
Created May 25, 2024 03:28
superproperty

made a small script:

@dataclass
class superproperty:
    g:"func"=None
    s:"func"=None
    d:"func"=None
    def __set_name__(self, owner, name):
        iter=(b for b in owner.__mro__ if hasattr(b,name))
        next(iter)
@zihu12
zihu12 / Dockerfile
Last active July 22, 2024 17:10
Dockerfile for huangz1342/icalingua-bridge-oicq
# Dockerfile for icalingua-bridge-oicq
# Based on code from https://github.com/Icalingua-plus-plus/Icalingua-plus-plus (licensed under AGPL-3.0)
# Copyright (c) zihu12
# License: AGPL-3.0
FROM docker.io/library/node:18 AS build
ARG VERSION
RUN git clone https://github.com/Icalingua-plus-plus/Icalingua-plus-plus.git --depth=1 -b v$VERSION
WORKDIR /Icalingua-plus-plus/icalingua-bridge-oicq
RUN corepack enable && npm install -g node-prune
@chen-qingyu
chen-qingyu / PrimeNumberVisualization.html
Last active November 12, 2022 13:14
素数的可视化实验:沿直线每步一格,逢素数则右转
<html>
<body>
<style>
html,
body {
width: 100%;
height: 100%;
margin: 0;
background: #303030;