Skip to content

Instantly share code, notes, and snippets.

@zolunx10
zolunx10 / ll_pt.js
Last active August 29, 2015 14:03
LoveLive活动获得pt计算(假设lp都不浪费)
// data ref <http://www59.atwiki.jp/lovelive-sif/pages/23.html>
var RANK_LP = [25,26,26,27,27,28,28,29,29,30,30,31,31,32,32,33,33,34,34,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,42,43,43,44,44,45,45,46,46,47,47,48,48,49,49,50,50,51,51,52,52,53,53,54,54,55,55,56,56,57,57,58,58,59,59,60,60,61,61,62,62,63,63,64,64,65,65,66,66,67,67,68,68,69,69,70,70,71,71,72,72,73,73,74,74,75,75,76,76,77,77,78,78,79,79,80,80,81,81,82,82,83,83,84,84,85,85,86,86,87,87,88,88,89,89,90,90,91,91,92,92,93,93,94,94,95,95,96,96,97,97,98,98,99,99,100,100,101,101,102,102,103,103,104,104,105,105,106,106,107,107,108,108,109,109,110,110,111,111,112,112,113,113,114,114,115,115,116,116,117,117,118,118,119,119,120,120,121,121,122,122,123,123,124,124,125];
var RANK_EXP = [11,13,16,20,26,32,39,48,57,67,79,91,105,120,135,152,170,189,208,229,251,274,298,323,349,376,405,434,464,495,528,561,596,620,655,689,724,758,792,827,861,896,931,965,1000,1034,1068,1103,1137,1171,1205,1241,1275,1309,1344,1378,1413,1447,1482,1516,1550,1585,1620,1654,1688,1722,
@zolunx10
zolunx10 / proxy_zju.pac
Created March 27, 2013 06:21
messy configure files
function FindProxyForURL(url, host) {
// ZJU
if (
dnsDomainIs(host, ".zju.edu.cn")
|| isInNet(host, "10.0.0.0", "255.0.0.0")
|| isInNet(host, "210.32.0.0", "255.255.240.0")
|| isInNet(host, "210.32.128.0", "255.255.192.0")
) {
return "DIRECT";
}
@zolunx10
zolunx10 / common.js
Created December 25, 2012 11:55
some js functions
function zpad(x, n) {
return String("00000000000000000000"+Math.abs(x)).slice(-n);
}
@zolunx10
zolunx10 / CMakeLists.txt
Created December 2, 2012 02:47
An CMakeLists template of opencv+mingw project = =
cmake_minimum_required(VERSION 2.6)
PROJECT("project_name")
INCLUDE_DIRECTORIES("$ENV{opencv}/build/include" "$ENV{opencv}/build/include/opencv")
LINK_DIRECTORIES("$ENV{opencv}/build/mingw/lib")
ADD_DEFINITIONS(-DHAVE_LRINT -DHAVE_LRINTF)
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG")
SET(CMAKE_BUILD_TYPE Debug)
SET(SOURCES your_source.cpp)
@zolunx10
zolunx10 / .gitignore
Last active December 24, 2023 15:14
Rime用颜文字(及符号)字典. 个人都绑定到v键开头了, 请下载kaomoji*并酌情修改字典文件.dict.yaml; 另如果要在当前输入法中直接嵌入, 请参考luna_pinyin_simp.custom.yaml前半段修改您的输入法设置.
*
!.gitignore
!alternative.yaml
!*.custom.yaml
!kaomoji.*.yaml