Skip to content

Instantly share code, notes, and snippets.

View HaveF's full-sized avatar
🎯
Focusing

HaveF HaveF

🎯
Focusing
View GitHub Profile
@HaveF
HaveF / test.js
Created August 20, 2016 04:01 — forked from miguelmota/test.js
Node SuperTest simple example
var test = require('tape');
var request = require('supertest');
var server = require('../../server');
test('barcode route', function(t) {
request(server)
.get('/api/1/code')
.expect(200)
.expect('Content-Type', /json/)
.expect({"code":{"code":"1M4A67AE3H94RS6GG74M"}})
@HaveF
HaveF / cube_net_value.js
Last active March 29, 2017 12:11
雪球 关注的人组合水平 查询
aList = $('.users-list>li>div.headpic>a');
aList.toArray().map(node => {
fetch(`https://xueqiu.com/cubes/list.json?user_id=${node.getAttribute("data-id")}&_=${Date.now()}`, {
credentials: 'include'
})
.then(res=>{
return res.json()
})
.then(res=>{
let b = res.list.map(cube=>{
@HaveF
HaveF / .git-commit-template.txt
Last active September 28, 2020 01:05 — forked from jmaxhu/.git-commit-template.txt
一份建议的git commit模板
<类型>: <主题> (最多50个字)
# 解释为什么要做这些改动
# |<---- 请限制每行最多72个字 ---->|
# --- 提交 结束 ---
# 类型值包含
# feat (新特性)
# fix (bug修复)
# docs (文档改动)