Skip to content

Instantly share code, notes, and snippets.

Avatar
🌎
responses will be delayed

Yang Li idealhack

🌎
responses will be delayed
View GitHub Profile
@idealhack
idealhack / clean-telegram-chat.sh
Last active Mar 9, 2020
telegram-chat-cleaner
View clean-telegram-chat.sh
# create a telegram application at https://my.telegram.org/apps
TELEGRAM_CHAT_NAME="" \
TELEGRAM_CLEAN_DELTA_DAYS="" \
TELEGRAM_API_ID="" \
TELEGRAM_API_NAME="" \
TELEGRAM_API_HASH="" \
python3 telegram-chat-cleaner.py
View keybase.md

Keybase proof

I hereby claim:

  • I am idealhack on github.
  • I am idealhack (https://keybase.io/idealhack) on keybase.
  • I have a public key ASBpPnri15DlPTokGVA1q5NR0-R5QL0LyTuDNNl6FQ6Zfgo

To claim this, I am signing this object:

View Games to play.md

Games to play

Games to play

Play at least 20 of the following games. Write a 50 words review per game in English. After semester start we you will be asked to upload the review s on a discussion board on Blackboard.

  1. Morphopolis (PC) http://store.steampowered.com/app/314020 Point and click puzzle with very nice artwork.
  2. Rymdkapsel (iOS, Android, PC) http://rymdkapsel.com/ Strategy
  3. Secrets of mana (iOS , Android) https://itunes.apple.com/us/app/secret-of-mana/id407949800?mt=8 Classic RPG on tablet
  4. Hitman GO (iOS, Android, WP) https://itunes.apple.com/us/app/hitman-go/id731645633?mt=8 Board game style gameplay
@idealhack
idealhack / ingress-passcode.js
Last active Nov 13, 2020 — forked from DragorWW/ingress-passcode.js
ingress passcode auto run
View ingress-passcode.js
// disable iitc plugin if it's on
// go to https://www.ingress.com/intel
// open console and paste in the code below, press enter
// join https://t.me/passcodes for more passcodes
// add jquery
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
@idealhack
idealhack / png.js
Created Jan 31, 2015
Read and Write PNG in Binary
View png.js
// PNG 格式定义
// http://dev.gameres.com/Program/Visual/Other/PNGFormat.htm
var fs = require('fs');
// 测试文件
var FILE_IN = 'in.png'
, FILE_OUT = 'out.png';
var out = '';
View problems.txt
Introduction To The Problems
• There must be a way to supply the application with the input data via text file
• The application must run
• You should provide sufficient evidence that your solution is complete by, as a minimum, indicating that it works correctly against the supplied test data
Problem One: Merchant's Guide To The Galaxy
You decided to give up on earth after the latest financial collapse left 99.99% of the earth's population with 0.01% of the wealth. Luckily, with the scant sum of money that is left in your account, you are able to afford to rent a spaceship, leave earth, and fly all over the galaxy to sell common metals and dirt (which apparently is worth a lot).
View keybase.md

Keybase proof

I hereby claim:

  • I am idealhack on github.
  • I am idealhack (https://keybase.io/idealhack) on keybase.
  • I have a public key whose fingerprint is 867A BBA5 F425 0A0E C82F 0F14 0A21 4100 C4E1 11D0

To claim this, I am signing this object:

View downloads.js
var number = 11568895
var string = number.toString()
var now = []
for (var i = 0; i < string.length; i++) {
now.push(string.substr(i, 1))
}
@idealhack
idealhack / kue-reset.js
Last active Dec 14, 2017
Reset active kue jobs to inactive state
View kue-reset.js
var redis = require ('redis'),
kue = require ('kue'),
redisClient = redis.createClient(6379, "127.0.0.1");
kue.redis.createClient = function () {
return redisClient;
};
kue.app.listen(7000);
View china-regions.json
{
"regions": [
{
"id": 1,
"pid": 0,
"level": 0,
"name": "中国"
},
{
"id": 2,