Skip to content

Instantly share code, notes, and snippets.

View ookcode's full-sized avatar
🎯
Focusing

Vincent Yao ookcode

🎯
Focusing
View GitHub Profile
@ookcode
ookcode / functions.lua
Created October 13, 2017 06:40
Simulation inheritance and utility method for lua
--[[
Copyright (c) 2014-2017 Chukong Technologies Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@ookcode
ookcode / ytf_download.sh
Created June 7, 2018 06:28
袁腾飞全系列视频的mp3下载脚本
#!/bin/bash
########################################
#
# 使用youtube-dl库下载
# https://github.com/rg3/youtube-dl
#
########################################
# 腾飞五千年系列———中华文明起源
@ookcode
ookcode / hero_skin_download.py
Created October 27, 2019 01:12
爬王者荣耀全皮肤海报
import requests
import re
import os
url = 'http://pvp.qq.com/web201605/js/herolist.json'
url_formatter = "http://game.gtimg.cn/images/yxzj/img201606/skin/hero-info/{}/{}-bigskin-{}.jpg"
headers = {
'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36'