Skip to content

Instantly share code, notes, and snippets.

View EYHN's full-sized avatar
🎯
Focusing

EYHN EYHN

🎯
Focusing
View GitHub Profile
const musicNotify = () => {
const m = '/storage/emulated/0/Download/WeiXin/平凡之路.mp3'
media.playMusic(m);
sleep(media.getMusicDuration());
}
const to_mall_cart = () => {
shopping_cart_btn=id('img_shopping_cart').findOne()
.monaco-workbench,
.monaco-workbench .sidebar,
.monaco-workbench .part.panel.right,
.monaco-workbench .part.panel .pane-body.integrated-terminal .terminal-outer-container,
.composite.title,
.pane-header.expanded,
.activity-bar-placeholder,
.monaco-workbench .activitybar,
.monaco-workbench .monaco-list-rows,
.monaco-editor .margin,
@Jack-Works
Jack-Works / 2018.js
Last active March 1, 2024 02:23
cRAzY eSnEXt (*all* proposals mixed in)
#! Aaaaaaaaaaa this is JS!!!
// https://github.com/tc39/proposal-hashbang
// This file is mixing all new syntaxes in the proposal in one file without considering syntax conflict or correct runtime semantics
// Enjoy!!!
// Created at Nov 23, 2018
for await(const x of (new A // https://github.com/tc39/proposal-pipeline-operator
|> do { // https://github.com/tc39/proposal-do-expressions
case(?) { // https://github.com/tc39/proposal-pattern-matching
when {val}: class {
@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!