Skip to content

Instantly share code, notes, and snippets.

View ivicel's full-sized avatar

ivicel ivicel

View GitHub Profile
@ivicel
ivicel / gist:a95788a522c68fdd676973bb748b924a
Created September 11, 2020 06:01
Python super函数解析说明
# 1. 在类中, 省略两个参数, 此时相当 super(cls, self)
class A1:
def spam(self):
print("当前类 A1, 当前对象:", self, ", 类 A1 本身的 mro:", A1.__mro__)
# 相当 super(A1, self)
super().spam()
class B1:
def spam(self):
@ivicel
ivicel / DiskLruCache.java
Last active April 9, 2018 03:53
Android Disk LRU Cache
/*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@ivicel
ivicel / SteamRedeemKeys.js
Created August 31, 2017 00:40 — forked from makazeu/SteamRedeemKeys.js
Steam Batch Redeem Keys for Tampermonkey
// ==UserScript==
// @name SteamRedeemKeys
// @namespace https://steamcn.com/t303915-1-1
// @version 1.4.2
// @description Steam网页激活 —— 批量激活
// @author Makazeu
// @match https://store.steampowered.com/account/registerkey
// @grant GM_addStyle
// ==/UserScript==