Skip to content

Instantly share code, notes, and snippets.

😐
fine

clip binderclip

😐
fine
Block or report user

Report or block binderclip

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View pre-commit
#!/bin/sh
exit_code=0
goimports_fix() {
hash goimports 2>&- || { echo >&2 "goimports not in PATH."; exit 1; }
for file in `git diff --cached --name-only --diff-filter=d | grep -v vendor | grep '\.go$'`
do
if [[ ! -z `git diff --name-only ${file} | grep '\.go$'` ]]
View decoded-binlog-sample.txt
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
DELIMITER /*!*/;
# at 4
#190521 22:03:48 server id 1 end_log_pos 123 CRC32 0x9a9ea66e Start: binlog v 4, server v 5.7.25-28-log created 190521 22:03:48 at startup
# Warning: this binlog is either in use or was not closed properly.
ROLLBACK/*!*/;
# at 123
#190521 22:03:48 server id 1 end_log_pos 154 CRC32 0xc13e82af Previous-GTIDs
# [empty]
View pinyin-to-emoji.json
{"e":"🐊","ai":"❤️","er":"👂","ba":"🎱","bo":"🍍","bi":"🖋","bu":"🙅‍♂️","bai":"💯","bao":"🎒","ban":"🔧","bang":"🍭","bei":"🐚","ben":"📒","biao":"⌚️","bian":"🦇","bie":"🧷","bin":"🍾","bing":"🍧","pa":"👏","pi":"🍺","pu":"🍇","pai":"🏓","pao":"🏃‍♂️","pan":"🍽","pen":"⛲️","peng":"⛺️","piao":"🐞","pin":"🧩","ping":"🍎","ma":"🐴","mo":"🍄","mi":"🍯","mai":"🎙","mao":"🐈","man":"🈵","mang":"🥭","mei":"🍓","men":"🚪","meng":"🍋","miao":"🐱","mian":"🍜","mie":"🧯","fa":"👩‍⚖️","fu":"🗻","fan":"🍚","fang":"🏠","fei":"✈️","feng":"🐝","da":"🖨","de":"🉐","di":"🌎","du":"🦄","dai":"🦘","dao":"🔪","dan":"🥚","dong":"🕳","deng":"💡","diao":"🎣","dian":"⚡️","die":"🦋","ding":"🔝","dui":"✔️","dun":"🛡","ta":"🗼","tu":"🐇","tai":"☯️","tao":"🍑","tang":"🍬","tong":"🛢","tiao":"💃","tian":"😛","tie":"🛤","ting":"⏹","tuan":"🍙","tui":"🦵","tun":"🐬","tuo":"🐪","nv":"🚺","nai":"🍼","nao":"🧠","nan":"🚹","nang":"💊","nong":"👩‍🌾","nei":"👙","niao":"🐦","niu":"🐂","ning":"🍋","niang":"👰","la":"🌶","li":"🍐","lu":"🦌","lv":"💚","lao":"🧀","lan":"🏀","lang":"🐺","lou":"🏢","long":"🐉","lei":"⚡️","leng":"🥶","lian":
@binderclip
binderclip / reminder.md
Last active Jul 13, 2018
slackbot usage snippets
View reminder.md

check list

/remind list

“@channel to do something”

/remind #<channel name> @channel Time to go eat lunch 12:15 every weekday 
View atfield.py
# coding: utf-8
import functools
import time
from threading import local
from collections import deque
class ATFieldException(Exception):
pass
@binderclip
binderclip / weapp_msgs.txt
Created Mar 12, 2018
微信小程序客服消息格式
View weapp_msgs.txt
// 从小程序进入客服消息会话(明文 + 加密模式)
{
"ToUserName": "gh_eeeeeeeeeeee",
"FromUserName": "o222222222222222222222222222",
"CreateTime": 1520836271,
"MsgType": "event",
"Event": "user_enter_tempsession",
"SessionFrom": "...",
"Encrypt": "oMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM="
}
@binderclip
binderclip / xiaoe-miniapp-app-config.json
Created Mar 9, 2018
小鹅通小程序 app-config.json
View xiaoe-miniapp-app-config.json
{
"page": {
"page/home/home_index/home_index.html": {
"window": {
"navigationBarTitleText": "首页",
"enablePullDownRefresh": true
}
},
"page/home/message/message.html": {
"window": {
@binderclip
binderclip / wechat_mp_msgs.txt
Last active Mar 26, 2018
微信服务号请求消息格式
View wechat_mp_msgs.txt
// 本来的数据是 XML 的,手动转换成了 json 格式
// 文本消息
{
"ToUserName": "gh_555555555555",
"FromUserName": "o3QQQQQQQQQQQQQQQQQQQQQQQQQQ",
"CreateTime": "1520247736",
"MsgType": "text",
"Content": "红包",
"MsgId": "6529414308333333333"
View press.one
{"sig":"bd7b55e69abed7c9417010c4e168c0f6e33041d35d794f3a751783fabbc691e1d6aa269043f75a117f1605c49edb0bef900799bb0d86f200b95a7f252ceb5dc51","msghash":"ecbc123deb91ef0e92accc34fa95450c2adbaacffcc9288eca03b1fe65f3065c"}
View .pre-commit-config.yaml
# See http://pre-commit.com for more information
# See http://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
sha: v1.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: autopep8-wrapper
args:
You can’t perform that action at this time.