Skip to content

Instantly share code, notes, and snippets.

View ben7th's full-sized avatar
💭
233333

ben7th ben7th

💭
233333
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
爱发电的介绍:
官网 https://afdian.net
任何类型的创作者,都可以在爱发电建立主页,展示自己或创作
粉丝可以给创作者发电(赞助),创作者就能获得收入
同时创作者可在爱发电回馈发电粉丝专属的内容或互动,建立更深的联系
优势:
可以方便的展示自己,或发布作品(支持图文影音、评论私信等)
有完整的用户交易记录,方便汇总查询,聚集核心粉丝
平台分成低,只有6%,并且会协助推广
@ben7th
ben7th / sample.java
Last active December 21, 2019 15:36
public class aap extends um {
private static final Logger b = ;
public float a = (float) (Math.random() * 3.141592653589793D * 2.0D);
private int c;
private int d;
private int e = 5;
private String f;
private String g;
public aap(amp paramamp, double paramDouble1, double paramDouble2, double paramDouble3) {
now
(io.js) v2.0 : v2.x
| | : |
v0.10.x /--------------:-----------------\ Node.js 2.0
____|____/ : \______|_____
\ : /
\--------------:-----------------/
| | : | |
(node.js) v0.12.x : v0.13.x v0.14.x
小白社区于 2019 年 3 月 3 日召开了全体贡献者会议。
小白创始人刘宇先生代表社区公布了 2019 年度的工作目标。
小白社区 2019 工作年度从 2019 年 3 月 1 日起,至 2020 年 2 月 29 日止。
今年的工作目标秉承 2018 年建立的产品、运营以及社区组织基础;
从深化社区组织规则,提升迭代效率等方面对小白 ICP 贡献者社区提出了更多要求;
从重视各项数据采集,围绕数据深入思考,围绕数据改善产品等方面对开发与运营提出了更多建议;
2019 年,小白社区将专注于实现与完善一个健全、顺畅、具有成长性和高可控性的数据体系:
@ben7th
ben7th / gist:e0c297a5346b0c2e7f4ee47386929a8f
Created January 14, 2019 04:12
并发异步请求(用于 FC 调度层)
import grequests
import requests
from timeit import default_timer as timer
urls = [ "https://1246105.cn-shenzhen.fc.aliyuncs.com/2016-08-15/proxy/charlene-chatlog/api/bundle/" ] * 10
for idx, url in enumerate(urls):
urls[idx] = urls[idx] + str(idx) + '.xls'
def req_sync():
{
"steps": [
{
"id": "step-1"
"title": "页面1标题",
"data": [
{
"kind": "text",
"content": "..........."
},
@ben7th
ben7th / gist:99a10561b5e842171566
Last active August 29, 2015 14:05
alpha-4 教程编写向导设计,资源准备 JSON
[
{
"kind": "image",
"filename": "xxxx.xxx",
"title": "xxx风景画",
"points": [
"xxx",
"xxx",
"xxx",
"xxx"
[
{
"newtype": true,
"net_id": "sp-1",
"id": "sample-sp-1",
"img": "http://mindpin.oss-cn-hangzhou.aliyuncs.com/image_service/images/jwprfBAQ/adaptive_height_300_jwprfBAQ.png",
"title": "带有选择分支的教程",
"desc": "",
"steps": [
{
@ben7th
ben7th / 学生
Last active August 29, 2015 14:05
[
{
"id": "learner-1",
"name": "徐晨",
"avatar": "http://img.baidu.com/img/baike/pictures/r0s1g13.gif",
"learned": [
"sample-2-1",
"sample-2-2",
"sample-2-3",
"sample-2-5",