Skip to content

Instantly share code, notes, and snippets.

View WincerChan's full-sized avatar
🎯
Focusing

LoeRfy WincerChan

🎯
Focusing
View GitHub Profile
@WincerChan
WincerChan / hitokoto.js
Created July 20, 2017 14:28
js脚本模拟一言API
var rand1 = Math.floor(Math.random()*410);quotes = new Array
quotes[0]='若隐若现才是艺术! ——「问题儿童来自异世界」'
quotes[1]='下一次重逢,将是何年何月?天空必将见证。 ——「SOLA」'
quotes[2]='如果你都不知道自己想去哪里,那去哪里都是一样的。 ——「柴郡猫」'
quotes[3]='一定没有问题的! ——「魔卡少女樱」'
quotes[4]='这是眼泪吗?原来眼泪是这么的温暖,我一直以为,哀伤的东西都是冰冷的。 ——「风色幻想」'
quotes[5]='桑丘,让他们管我叫疯子吧,我还疯得不够,所以得不到他们的赞许。 ——「堂吉诃德」'
quotes[6]='美好的人眼裡映出的世界也是美好的。 ——「ARIA」'
quotes[7]='如果不能忠于自己的心,胜负又有什么价值呢? ——「塔希里亚故事集」'
quotes[8]='天空本是一种风景,可是遇见你之后,它变成了一种心情。 ——「九ちのセカィ」'
@WincerChan
WincerChan / export.py
Last active September 26, 2023 07:19
导出qq聊天记录的小脚本(需要{qq号}.db和IMEI码)
from hashlib import md5
from sqlite3 import connect as sql_conn
from time import localtime, strftime
class IllegalException(Exception):
def __init__(self, *args):
super().__init__(*args)
@WincerChan
WincerChan / sw.js
Created July 25, 2017 06:19
Service Worker的js文件
'use strict';
const version = 'v201707131407';
const __DEVELOPMENT__ = false;
const __DEBUG__ = false;
const offlineResources = [
'/',
'/offline.html',
'/offline.svg'
];
@WincerChan
WincerChan / login_db.py
Created August 15, 2017 09:58
模拟登陆豆瓣
from requests import session, get
from re import search, compile
from PIL import Image
class Douban:
def __init__(self):
self.url = 'https://accounts.douban.com/login'
self.head = {
'User-Agent':
@WincerChan
WincerChan / .zshrc
Last active January 1, 2018 02:55
Modified zsh theme
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/home/wincer/.oh-my-zsh
export VISUAL=vim
export EDITOR="/usr/bin/vim"
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@WincerChan
WincerChan / ResLoader.js
Created November 26, 2017 01:45 — forked from willerce/ResLoader.js
保存 Javascript 和 CSS 到 LocalStorage 中
var Loader = (function () {
function Loader(options) {
this.options = options;
if (resource.scripts && resource.baseUrl) {
for (var i = 0; i < this.options.scripts.length; i++) {
this.load('js', this.options.scripts[i]);
}
for (var i = 0; i < this.options.stylesheets.length; i++) {
this.load('css', this.options.stylesheets[i]);
}
@WincerChan
WincerChan / get_link.py
Last active October 22, 2021 05:53
获得QQ音乐直链
@WincerChan
WincerChan / gist:50b1d6091da061c98f6d2c04e4ff49e0
Created January 4, 2018 04:41 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@WincerChan
WincerChan / loadCORS.js
Created May 27, 2018 07:57
将跨域资源转为本地资源
// 脚本资源
let tmpWorker = await fetch(workerUrl),
workerSrcBlob = new Blob([await tmpWorker.text()], { type: 'text/javascript' }),
workerBlobURL = window.URL.createObjectURL(workerSrcBlob);
// workerBlobURL 即为网站域名下的资源
// 图片资源
let tmpImg = await fetch(imageUrl),
@WincerChan
WincerChan / config.yml
Created June 14, 2018 12:18
CircleCI 配置文件
# 设置默认 image
defaults: &defaults
docker:
- image: circleci/node:10.4.0
version: 2
jobs:
build:
# 导入默认设置
<<: *defaults