apm config set http-proxy socks5:127.0.0.1:1080
apm config set https-proxy socks5:127.0.0.1:1080
apm config set strict-ssl false
/** | |
* 随机字符串 | |
*/ | |
private static final char[] CHARS = new char[] {'F', 'L', 'G', 'W', '5', 'X', 'C', '3', | |
'9', 'Z', 'M', '6', '7', 'Y', 'R', 'T', '2', 'H', 'S', '8', 'D', 'V', 'E', 'J', '4', 'K', | |
'Q', 'P', 'U', 'A', 'N', 'B'}; | |
private final static int CHARS_LENGTH = 32; | |
/** | |
* 邀请码长度 |
'use strict'; | |
module.exports = { | |
types: [ | |
{ | |
value: 'WIP', | |
name : '💪 WIP: Work in progress' | |
}, | |
{ |
var bigint = require( 'big-integer' ) | |
var lower = 'abcdefghijklmnopqrstuvwxyz'; | |
var upper = lower.toUpperCase(); | |
var numbers = '0123456789' | |
var ig_alphabet = upper + lower + numbers + '-_' | |
var bigint_alphabet = numbers + lower | |
function toShortcode( longid ) |
# coding:utf-8 | |
from elasticsearch import Elasticsearch | |
import json | |
# Define config | |
host = "127.0.0.1" | |
port = 9200 | |
timeout = 1000 | |
index = "index" |
#!/usr/bin/env python | |
""" | |
Twitter's API doesn't allow you to get replies to a particular tweet. Strange | |
but true. But you can use Twitter's Search API to search for tweets that are | |
directed at a particular user, and then search through the results to see if | |
any are replies to a given tweet. You probably are also interested in the | |
replies to any replies as well, so the process is recursive. The big caveat | |
here is that the search API only returns results for the last 7 days. So |
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis