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
package com.hhs.xgn.aatg; | |
import java.awt.image.BufferedImage; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import java.io.InputStreamReader; |
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 datetime import datetime | |
blog=[dict()] | |
pointer=0 | |
Str="" | |
def lookFor(x1): | |
global Str | |
global pointer |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using System.Diagnostics; | |
using System.Reflection; | |
using 日本麻将; | |
using 日本麻将.表生成; | |
namespace 日本麻将.示例 |
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
''' | |
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
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 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 |
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
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
''' | |
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") |
OlderNewer