本文是针对Erlang开发人员的Elixir语法简介,同时也适用于试图了解Erlang的Elixir开发者。 本文简要介绍了Elixir/Erlang语法,互操作能力,在线文档和示例代码等最基础的知识。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------- | |
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 | |
------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder