Skip to content

Instantly share code, notes, and snippets.

View WincerChan's full-sized avatar
🎯
Focusing

LoeRfy WincerChan

🎯
Focusing
View GitHub Profile
@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 / 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 / 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 / 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 / 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]='天空本是一种风景,可是遇见你之后,它变成了一种心情。 ——「九ちのセカィ」'