Skip to content

Instantly share code, notes, and snippets.

View pujiaxun's full-sized avatar
🎯
Focusing

Jason pujiaxun

🎯
Focusing
View GitHub Profile
@pujiaxun
pujiaxun / VS_Code_keymap_patch.json
Created September 2, 2017 09:52
A patch of VS Code keymap, for macOS Chinese Input Method.
[
{
"key": "cmd+[Slash]",
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+[Period]",
"command": "editor.action.inPlaceReplace.down",
"when": "editorTextFocus && !editorReadonly"
@pujiaxun
pujiaxun / coderay-onedark.scss
Last active August 3, 2016 03:24
CodeRay theme like one-dark of Atom.
// Some details not perfect because CodeRay cannot recognize.
$bg: hsl(220, 13%, 18%);
$comment: hsl(240, 0%, 39%);
$fg: hsl(220, 14%, 71%);
$line-number: hsl(218, 5%, 37%);
$yellow: hsl( 39, 67%, 69%);
$orange: hsl( 29, 54%, 61%);
$red: hsl( 5, 48%, 51%);
$magenta: hsl(355, 65%, 65%);
$purple: hsl(286, 60%, 67%);
@pujiaxun
pujiaxun / colorize.rb
Created June 14, 2016 05:16
A simple patch for String to colorize the output in the terminal.
class String
def black; "\e[30m#{self}\e[0m" end
def red; "\e[31m#{self}\e[0m" end
def green; "\e[32m#{self}\e[0m" end
def brown; "\e[33m#{self}\e[0m" end
def blue; "\e[34m#{self}\e[0m" end
def magenta; "\e[35m#{self}\e[0m" end
def cyan; "\e[36m#{self}\e[0m" end
def gray; "\e[37m#{self}\e[0m" end
end