Skip to content

Instantly share code, notes, and snippets.

View bigfang's full-sized avatar
🔥
🌵🐙🐳🍒🍉🎮

bigfang bigfang

🔥
🌵🐙🐳🍒🍉🎮
View GitHub Profile
@bigfang
bigfang / Erlang-Elixir语法速成.md
Last active July 5, 2023 02:30
[译] Erlang/Elixir 语法速成

Erlang/Elixir语法速成

本文是针对Erlang开发人员的Elixir语法简介,同时也适用于试图了解Erlang的Elixir开发者。 本文简要介绍了Elixir/Erlang语法,互操作能力,在线文档和示例代码等最基础的知识。

  1. 运行代码
  2. Erlang
@bigfang
bigfang / translate.user.js
Created July 19, 2021 01:52
智能划词翻译
// ==UserScript==
// @name 智能划词翻译
// @namespace https://greasyfork.org/zh-CN/users/150560
// @version 1.3.3
// @description 划词翻译,自动切换谷歌翻译和有道词典
// @author 田雨菲
// @match http://*/*
// @include https://*/*
// @run-at document-end
// @connect dict.youdao.com
@bigfang
bigfang / cvimrc
Last active June 10, 2021 06:07
cvim configuration
map H previousTab
map L nextTab
map J moveTabLeft
map K moveTabRight
map < goBack
map > goForward
map u lastClosedTab
map <C-u> scrollPageUp
map <C-d> scrollPageDown
@bigfang
bigfang / VSCode Internal Commands
Created May 11, 2021 04:02 — forked from skfarhat/VSCode Internal Commands
List of VSCode commands
--------------------------------------------
Version: 1.45.1
Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a
Date: 2020-05-14T08:33:47.663Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 18.5.0
-------------------------------------------
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="<old email>"
CORRECT_NAME="<new name"
CORRECT_EMAIL="<new email>"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
@bigfang
bigfang / gitconfig
Created January 19, 2020 03:39
git alias
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.ss stash
git config --global alias.sp "stash pop"
git config --global alias.sl "stash list"
git config --global alias.sa "stash apply"
git config --global alias.cp cherry-pick
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
@bigfang
bigfang / autocopy.user.js
Last active April 13, 2020 14:43
user script :: autocopy
// ==UserScript==
// @name autocopy
// @namespace https://bigfang.github.io
// @description Auto copy selected text
// @match *://*/*
// @run-at document-end
// @grant GM_setClipboard
// ==/UserScript==
if (typeof GM_setClipboard != 'function') alert('Your UserScript client has no GM_setClipboard support');
@bigfang
bigfang / swagger-json-to-html.py
Created January 25, 2019 09:48
swagger json to html
#!/usr/bin/python
"""
Usage:
python swagger-json-to-html.py < /path/to/api.json > doc.html
curl http://localhost:5000/spec-json | python swagger-json-to-html.py > doc.html
"""
import json, sys
@bigfang
bigfang / corr.ipynb
Last active February 19, 2018 14:03
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bigfang
bigfang / pivotheat.ipynb
Last active January 31, 2018 05:30
透视表与热力图
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.