Skip to content

Instantly share code, notes, and snippets.

Avatar

Too too

  • HXCD
  • Chengdu, China
View GitHub Profile
@bbrochier
bbrochier / gotop.css
Last active May 27, 2018
Go Top Sticky button
View gotop.css
/* Go Top */
.go-top {
position: fixed;
bottom: 2em;
right: 2em;
text-decoration: none;
color: white;
background-color: #f6f6f6;
background-color: rgba(0, 0, 0, 0.3);
font-size: 12px;
@lyricat
lyricat / novice_killer.user.js
Created Nov 30, 2012
干掉V2EX上所有使用默认头像用户的发言。
View novice_killer.user.js
// ==UserScript==
// @name v2ex novice killer
// @namespace http://shellex.info
// @author shellex(5h3ll3x@gmail.com)
// @description 干掉使用默认头像的人的发言
// @include http://www.v2ex.com/go/*
// @include http://v2ex.com/go/*
// @include http://www.v2ex.com/?tab=*
// @include http://v2ex.com/?tab=*
// @include http://www.v2ex.com/
@hrldcpr
hrldcpr / tree.md
Last active Jul 15, 2021
one-line tree in python
View tree.md

One-line Tree in Python

Using Python's built-in defaultdict we can easily define a tree data structure:

def tree(): return defaultdict(tree)

That's it!