Skip to content

Instantly share code, notes, and snippets.

View muzea's full-sized avatar
🎯
专注文档编辑

MuYu muzea

🎯
专注文档编辑
View GitHub Profile
@muzea
muzea / map.js
Created November 27, 2018 12:53
sample import info
const glob = require('glob')
const { transformFileSync } = require('@babel/core')
const t = require('@babel/types')
const fileList = glob.sync(process.argv[2])
const presets = [
'@babel/preset-typescript'
]
@muzea
muzea / readingTime.js
Created September 10, 2018 08:05
fix GHOST readingTime
(function($) {
$.fn.readingTime = function(config) {
if (!this.length)
return this;
var r = this
, a = $(this);
r.settings = $.extend({}, {
readingTimeTarget: ".eta",
wordCountTarget: null,
wordsPerMinute: 270,
@muzea
muzea / add_proxy_to_svn.sh
Created March 19, 2018 05:36
use proxy from svn
if [ ! -d $HOME/.subversion ]; then
mkdir $HOME/.subversion
fi
echo -e "[global]\nhttp-proxy-host=crawler.wooden.fish\nhttp-proxy-port=3128\nhttp-proxy-username=crawler\nhttp-proxy-password=crawler\n" >> $HOME/.subversion/servers
@muzea
muzea / 3040M
Last active December 4, 2019 05:40
public-key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4ICQK+u/kKdTT7ckS+Uik90wTJLH2HhI/n3+gyo8aASCxT27k7Fh171b3WqL3CxURuVBzWriR9nnZf6rPFX9fg+FUsHvRe0UxakJ+nlMd8yBSU4eZrZU2IDcmJNNlgonpZPDND9X/WktWIMiWfHL/dDMn/jxjzaswlEIUb88+EQMqQPvoAF5ZiBt9+pOJmKq+M6p8UaScTP+Ora4+oqoNIFtkSDyaiqDOHpwU8ZeFA+o+ZlPecVBA0gykl1t0SJwDo8Wh65pNnkiE20ugsshPQjl6EcdufXUroedDWvtkrPL60/kU+GKTHUMUhxNPO54QJHDTd1j7P81awn73HtR/ woodenfish@woodenfish-PC
@muzea
muzea / code.js
Last active September 25, 2017 06:08
$(function() {
const url = 'YOUR URL';
$(".btn.getauthzcode").click(function () {
$.ajax({
url,
success: function() {
console.log(url);
},
}
})