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
import { keymap } from 'prosemirror-keymap' | |
import { undoInputRule } from 'prosemirror-inputrules' | |
import { undo, redo } from 'prosemirror-history' | |
import { | |
wrapInList, | |
splitListItem, | |
liftListItem, | |
sinkListItem, | |
} from 'prosemirror-schema-list' |
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
site '*://cht.sh//*' { | |
unmapAll | |
} | |
set smoothscroll | |
set typelinkhints | |
" Code blocks (see below for more info) | |
getIP() -> {{ | |
httpRequest({url: 'http://api.ipify.org/?format=json', json: true}, |
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
/** | |
* 获取所有原始数据 | |
*/ | |
function getIds() { | |
var ids = []; | |
var errList = []; | |
return new Promise(function(resolve, reject) { | |
connection | |
.query( | |
"select id,fans_id,fans_nickname,buyer_id,fans_type,fans_info from yztrade" |
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
var stream = require('stream'); | |
var mysql = require('mysql'); | |
var connection = mysql.createConnection({ | |
host: 'XX', | |
user: 'XX', | |
password: 'XX', | |
database: 'XX' | |
}); | |
var errList = []; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://code.jquery.com/jquery-3.0.0.js"></script> | |
<script src="https://cdn.jsdelivr.net/lodash/4/lodash.min.js"></script> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> |