Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Clarence-pan
Clarence-pan / hack.js
Last active March 3, 2022 11:33
微信跳一跳, 你懂得
/*
* Recommend run with node v8.9.x or higher version
* npm install lodash crypto-js request-promise request
* node hack.js
*/
const version = 5 // the version of t1t
const score = 370 // the score you wanna get
const playTimeSeconds = score * 0.01 // simulate the playing time (seconds)
@Clarence-pan
Clarence-pan / calc-shannon-entropy.php
Last active May 31, 2017 05:19
计算PHP中各种随机函数的香农熵
<?php
/**
* 计算PHP中各种随机函数的香农熵
*/
define('DATA_MAX_BITS', 1 * 1024);
define('DATA_MAX_BYTES', DATA_MAX_BITS / 8);
define('TEST_TIMES', 100);
/**
@nightire
nightire / 解决 Git 在 windows 下中文乱码的问题.md
Last active April 10, 2024 07:08
解决 Git 在 windows 下中文乱码的问题

解决 Git 在 windows 下中文乱码的问题

原因

中文乱码的根源在于 windows 基于一些历史原因无法全面支持 utf-8 编码格式,并且也无法通过有效手段令其全面支持。

解决方案

  1. 安装