Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

Les1ie IanSmith123

Block or report user

Report or block IanSmith123

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@IanSmith123
IanSmith123 / spider.py
Created Apr 11, 2019
获取vista看天下《天下焦点》链接
View spider.py
import json
from concurrent.futures import ThreadPoolExecutor
import requests
pool = ThreadPoolExecutor(10)
sample = "http://v20.tp.wkread.com/index.php/WeiXin/Focus/getColumnList/id/103"
View 儿砸
黄污亮的爸爸是宇宇
宇宇的儿子是黄污亮
黄污亮的爸爸是谁
宇宇的儿子是谁
宇宇的儿砸
宇宇的傻儿砸
2019-3-25 10:26:57 编辑于gist
@IanSmith123
IanSmith123 / 51cto.js
Last active Jan 12, 2019
51cto关闭全屏广告
View 51cto.js
// ==UserScript==
// @name 51cto 关闭全屏广告
// @namespace https://gist.github.com/IanSmith123/5012b1c1c6ca3b7d19b2064e2c3a5bf4
// @version 0.1
// @description try to take over the world!
// @author Les1ie
// @match *://blog.51cto.com/*
// @grant none
// @run-at document-end
// ==/UserScript==
@IanSmith123
IanSmith123 / back2scu.yml
Last active Jan 2, 2019
clash规则列表
View back2scu.yml
port: 7890
socks-port: 7891
redir-port: 7892
allow-lan: false
mode: Rule
log-level: info
external-controller: '127.0.0.1:9090'
secret: ''
cfw-bypass:
- localhost
@IanSmith123
IanSmith123 / v2ex_catch_fish.py
Last active Jan 22, 2019
v2ex 摸鱼 刷dau脚本
View v2ex_catch_fish.py
import os
import sys
import json
import argparse
from time import sleep
from random import randint, shuffle
from selenium import webdriver
site_url = "https://www.v2ex.com"
driver_dumpfile = 'cookie.txt'
@IanSmith123
IanSmith123 / png2mp4.py
Created Jul 12, 2018
from png/jpg to mp4 use ffmpeg,
View png2mp4.py
import os
folders = os.listdir()
# folders = [f for f in listdir(mypath) if not isfile(join(mypath, f))]
for folder in folders:
if "store" in folder.lower():
print("skip ", folder)
continue
try:
os.system(
f"ffmpeg -framerate 2 -i {folder}/{folder}_%d.png -c:v libx264 -r 30 -pix_fmt yuv420p after_{folder}.mp4"
@IanSmith123
IanSmith123 / ng.cpp
Created May 2, 2018
裴波那契数列
View ng.cpp
// 新裴波那契数列
/*
Time Limit: 1000ms
Memory Limit: 64M
Description:
@IanSmith123
IanSmith123 / index.js
Created Apr 3, 2018 — forked from edokeh/index.js
佛祖保佑,永无 BUG
View index.js
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
@IanSmith123
IanSmith123 / calc.py
Created Aug 19, 2017
计算1-9不重复填入九宫格,横竖斜相加和相等
View calc.py
count = 0
for i in range(1, 10):
for j in range(1, 10):
a = [i, j, 15-i-j]
if len(set(a)) < 3 or 15-i-j<1:
count += 1
continue
for k in range(1, 10):
for l in range(1, 10):
@IanSmith123
IanSmith123 / download_bing_wallpaper.py
Created Aug 17, 2017
download bing wall paper for recent 7 days
View download_bing_wallpaper.py
import requests
sample_api_url = "http://www.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1"
# notice: add a num after "idx=", this is the count of day before today
api_url = "http://www.bing.com/HPImageArchive.aspx?format=js&n=1&idx="
def get_pic_url(num):
r = requests.get(api_url+repr(num))
con = r.json()
You can’t perform that action at this time.