Skip to content

Instantly share code, notes, and snippets.

View idealhack's full-sized avatar
💭
I may be slow to respond.

Y idealhack

💭
I may be slow to respond.
View GitHub Profile
@idealhack
idealhack / clean-telegram-chat.sh
Last active March 9, 2020 11:12
telegram-chat-cleaner
# 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
@idealhack
idealhack / keybase.md
Created June 17, 2019 07:33
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:

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 November 13, 2020 07:20 — forked from DragorWW/ingress-passcode.js
ingress passcode auto run
// 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 January 31, 2015 14:23
Read and Write PNG in Binary
// 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 = '';
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).

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:

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 December 14, 2017 03:33
Reset active kue jobs to inactive state
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);