Skip to content

Instantly share code, notes, and snippets.

View RogerZhangHS's full-sized avatar

Ruoqi Zhang RogerZhangHS

  • Shenzhen Middle School
  • Shenzhen
View GitHub Profile
@RogerZhangHS
RogerZhangHS / SubsGen.py
Created June 13, 2017 18:17
Used to generate images for live broadcast subtitles.
# coding: utf-8
# In[32]:
import cv2
import os
import codecs
from PIL import Image, ImageFont, ImageDraw, ImageColor
@RogerZhangHS
RogerZhangHS / casino_problem.py
Created February 26, 2017 04:50
Validation for the Casino problem
import random
import math
p = 0.00
trapped = 0
p = float(raw_input("Please enter the value of p (e.g. 0.49): "))
# print "Initializing with with fund: ${}.".format(money)
for i in range(1000000):
print i
investment = 0.00
failure = 0
@RogerZhangHS
RogerZhangHS / lwc_zh.properties
Created August 21, 2014 07:33
LWC Chinese Translation
# LWC Chinese locale
# author: RogerZhangHS of TeamTF
# Not entirely done
#################
## 综合 ##
#################
# 保护种类的名字
public=公共
@RogerZhangHS
RogerZhangHS / config.yml
Created August 20, 2014 16:11
A Chinese Translation of Craftbook - Version 3.9 Beta3 - config.yml
# Bukkit插件CraftBook的设置文档,为版本 3.9-SNAPSHOT:3873-edf1456,master 而生成
# 这个设置文档会自动为你添加新的选项,
# 所以并没有必要重新生成这份文件,除非你想要。
# 如果你要获取这些功能的更多信息,请访问……
# http://wiki.sk89q.com/wiki/CraftBook/Usage
# 汉化:RogerZhangHS
#
# 请注意!没有任何东西是默认已经开启的!请自行开启!
@RogerZhangHS
RogerZhangHS / books.txt
Last active August 29, 2015 14:05
A Chinese Translation of Craftbook - Version 3.9 Beta3 - books.txt 翻译尚未完成 请求支援
一个真正的人应该根植于他的国家之中,但尽管如此,他的视线仍能扫过整个世界。
酒能让一个人对自己更加满意,但不会让这个人对别人更加满意。
You can fool too many of the people too much of the time.
Some people have so much respect for their superiors they have none left for themselves.
When the water reaches the upper level, follow the rats.
Never face facts; if you do, you'll never get up in the morning.
I don't have an English accent because this is what English sounds like when spoken properly.
Things won are done; joy's soul lies in the doing.
Journalism is just a gun. It's only got one bullet in it, but if you aim right, that's all you need. Aim it right and you can blow a kneecap off the world.
We do not believe if we do not live and work according to our belief.
@RogerZhangHS
RogerZhangHS / zh_CN.yml
Last active August 29, 2015 14:05
A Chinese Translation of Craftbook - Version 3.9 Beta4
#translated by RogerZhangHS
#Translation Version: 3.9 Beta4
#Please tell me if there is any mistake
mech:
gate:
create: 成功创建城门!
toggle: 已更改城门状态!
not-found: 无法找到城门!
valid-item: 第1行需要为有效的方块ID。
cauldron: