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 kotlinx.coroutines.* | |
import java.lang.RuntimeException | |
import kotlin.coroutines.CoroutineContext | |
class Enemy | |
fun addEnemy(enemy: Enemy){ | |
println("Added enemy!!") | |
} |
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
# THIS IS AN EXAMPLE FILE!!! | |
博麗霊夢 | |
霧雨魔理沙 | |
ルーミア | |
チルノ | |
紅美鈴 | |
...... |
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
''' | |
Maybe do some research with danbooru | |
''' | |
import re | |
import urllib.request | |
import sys | |
import json | |
from pixivpy3 import * | |
from tqdm import tqdm |
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
''' | |
Blog converter short | |
For Mathjax only | |
XGN from HHS 2021/2/27 | |
''' | |
def blogalize(s): | |
s=s.replace("%","%").replace("{{","{ {").replace("}}","} }").replace("$$","$") | |
so="" |
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
''' | |
Property Extractor and Restorer | |
''' | |
path=input("File path:") | |
mode=input("Mode([R]estore/[E]xtract):") | |
with open(path,"r",encoding="utf-8") as f: | |
if mode not in "RrEe" or len(mode)!=1: | |
print("Err.1: Mode should be one of 'RE'. Quit") |
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
inp=[] | |
dic=dict() | |
occur=set() | |
def levenshteinDistance(s1, s2): | |
if len(s1) > len(s2): | |
s1, s2 = s2, s1 | |
distances = range(len(s1) + 1) | |
for i2, c2 in enumerate(s2): |
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 json | |
import urllib.request | |
import io | |
import sys | |
def getURL(url): | |
# print("访问开始:"+url) | |
request=urllib.request.Request(url) | |
response=urllib.request.urlopen(request) | |
html=response.read() |
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
''' | |
Touhou Music To Address From Thwiki | |
''' | |
import re | |
import urllib.request | |
import sys | |
import json | |
def getURL(url): |
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 <iostream> | |
#include <algorithm> | |
#include <vector> | |
#include <set> | |
#include <queue> | |
#include <map> | |
#include <string.h> | |
#include <math.h> | |
#include <stdio.h> | |
#include <deque> |
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 urllib.request | |
import io | |
import sys | |
import json | |
import re | |
import random | |
print(''' | |
Generate First Letter Problem Using Source China Daily | |
By XGN from HHS 2020 |
NewerOlder