Skip to content

Instantly share code, notes, and snippets.

View EYHN's full-sized avatar
🎯
Focusing

EYHN EYHN

🎯
Focusing
View GitHub Profile
@EYHN
EYHN / EYHN's GitHub Stats
Last active November 2, 2023 17:03
💪🏻 History of GitHub
⭐ Total Stars: 6.0k
➕ Total Commits: 4.9k
🔀 Total PRs: 238
🚩 Total Issues: 72
📦 Contributed to: 6
@EYHN
EYHN / I'm a night 🦉
Last active September 2, 2023 00:14
🌙 Work at night
🌞 Morning 41 commits ███▏░░░░░░░░░░░░░░░░░ 15.3%
🌆 Daytime 76 commits █████▉░░░░░░░░░░░░░░░ 28.4%
🌃 Evening 103 commits ████████░░░░░░░░░░░░░ 38.4%
🌙 Night 48 commits ███▊░░░░░░░░░░░░░░░░░ 17.9%
@EYHN
EYHN / 📊 Weekly development breakdown
Last active April 20, 2022 00:13
📊 Weekly Development
Rust 🕓 26h56m █████████████████▏░░░░░░░░░ 63.7%
TypeScript 🕓 11h22m ███████▎░░░░░░░░░░░░░░░░░░░ 26.9%
Other 🕓 1h17m ▊░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.1%
C++ 🕓 53m ▌░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.1%
JavaScript 🕓 47m ▌░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.9%
@EYHN
EYHN / channel_ranking.py
Created April 15, 2018 17:23
telegram 频道热门信息排名,根据阅读数量排名
from telethon import TelegramClient
from telethon.tl.functions.messages import GetMessagesViewsRequest
import socks
import sys, time
# Open http://telethon.readthedocs.io/en/latest/extra/basic/creating-a-client.html#creating-a-client and login with your phone number.
# Click under API Development tools.
# A Create new application window will appear. Fill in your application details. There is no need to enter any URL, and only the first two fields (App title and Short name) can currently be changed later.
# Click on Create application at the end. Remember that your API hash is secret and Telegram won’t let you revoke it. Don’t post it anywhere!
@EYHN
EYHN / deploy_gh_page.sh
Created February 25, 2018 05:12
Auto deploy github page.
mkdir ./deploy-gh-page
cp -rf "${DeployPath}" ./deploy-gh-page
cd ./deploy-gh-page
git init
git config --global push.default matching
git config --global user.email "${GitHubEmail}"
git config --global user.name "${GitHubUser}"
git add --all .
{
"extends": ["tslint:recommended", "tslint-react"],
"rules": {
"arrow-parens": false,
"arrow-return-shorthand": [false],
"comment-format": [true, "check-space"],
"import-blacklist": [true, "rxjs"],
"interface-over-type-literal": false,
"interface-name": false,
"max-line-length": [true, 120],
@EYHN
EYHN / telegram-forward.py
Created September 21, 2017 12:12
Python github forward telegram bot
from telegram import Bot,ParseMode
from github import Github
import time
from datetime import datetime
import calendar
import traceback
bot = Bot("xxxxxxxx:xxxxxxxxxxxxxxxxxxxxxx") #Telegram bot token
def newEvent(event):