Skip to content

Instantly share code, notes, and snippets.

// install package control
// package control install Matrial Theme, ConvertToUTF8, Codecs33, ChineseLocalizations(option)
{
"always_show_minimap_viewport": true, //show mini map
"font_size": 14, //set font size to 14
"theme": "Material-Theme.sublime-theme", //use material theme
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"show_encoding": true, //show encoding on status bar
"bold_folder_labels": true, //draw bold labels on side bar
"translate_tabs_to_spaces": true, //use soft tabs
if __name__ == '__main__':
str = ""
str = raw_input(">")
print str.lower().replace(' ', '-').replace('.', '')
@walt-w
walt-w / Zhihu Cleaner
Last active December 3, 2020 06:30
Clean up Zhihu question page in GreaseMonkey
// ==UserScript==
// @name Zhihu Cleaner
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Cleanup Zhihu CSS
// @author W
// @match https://www.zhihu.com/question/*
// @grant GM_addStyle
// ==/UserScript==