- Open Telegram application then search for
@BotFather
- Click Start
- Click Menu -> /newbot or type
/newbot
and hit Send - Follow the instruction until we get message like so
Done! Congratulations on your new bot. You will find it at t.me/new_bot.
I hereby claim:
- I am seandong on github.
- I am dongzhengxuan (https://keybase.io/dongzhengxuan) on keybase.
- I have a public key ASDx7REGz2Th6a_5RgBoWVy-fECoEND2M-DrO_K_W41CXwo
To claim this, I am signing this object:
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
``` | |
g++ '-DNODE_GYP_MODULE_NAME=binding' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DOPENSSL_THREADS' '-DBUILDING_NODE_EXTENSION' -I/home/travis/.node-gyp/12.0.0/include/node -I/home/travis/.node-gyp/12.0.0/src -I/home/travis/.node-gyp/12.0.0/deps/openssl/config -I/home/travis/.node-gyp/12.0.0/deps/openssl/openssl/include -I/home/travis/.node-gyp/12.0.0/deps/uv/include -I/home/travis/.node-gyp/12.0.0/deps/zlib -I/home/travis/.node-gyp/12.0.0/deps/v8/include -I../../nan -I../src/libsass/include -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -std=c++0x -MMD -MF ./Release/.deps/Release/obj.target/binding/src/binding.o.d.raw -c -o Release/obj.target/binding/src/binding.o ../src/binding.cpp | |
In file included from ../../nan/nan_converters.h:67:0, | |
from ../../nan/nan.h:222, | |
一.语言 1.推荐一本看过最好的python书籍? 拉开话题好扯淡 2.谈谈python的装饰器,迭代器,yield? 3.标准库线程安全的队列是哪一个?不安全的是哪一个?logging是线程安全的吗? 4.python适合的场景有哪些?当遇到计算密集型任务怎么办? 5.python高并发解决方案?我希望听到twisted->tornado->gevent,能扯到golang,erlang更好
二.操作系统 可以直接认为是linux,毕竟搞后端的多数是和linux打交道。 1.tcp/udp的区别?tcp粘包是怎么回事,如何处理?udp有粘包吗?
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
#!/usr/bin/env python | |
# -*- coding: utf8 -*- | |
import hmac | |
import hashlib | |
import json | |
import time | |
import urllib | |
import requests |
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
> kill --ttin pid | |
2018-09-10T02:30:57.261Z 8172 TID-gpfysbf88 ProcessRunActionsJob JID-cbba7cd89adce6757179322a INFO: done: 0.04 sec | |
2018-09-10T02:31:19.493Z 8172 TID-gpfysbf88 ProcessRunActionsJob JID-9c4aee1741e26f0882f284f4 INFO: start | |
perform async process(1448067) actions -- false -- passed | |
2018-09-10T04:50:20.486Z 8172 TID-gpfwf6et8 WARN: Thread TID-gpfwf6et8 | |
2018-09-10T04:50:20.487Z 8172 TID-gpfwf6et8 WARN: /www_space/zhirenhr/releases/20180909220036/vendor/bundle/ruby/2.4.0/gems/sidekiq-4.2.10/lib/sidekiq/cli.rb:151:in `backtrace' | |
/www_space/zhirenhr/releases/20180909220036/vendor/bundle/ruby/2.4.0/gems/sidekiq-4.2.10/lib/sidekiq/cli.rb:151:in `block in handle_signal' | |
/www_space/zhirenhr/releases/20180909220036/vendor/bundle/ruby/2.4.0/gems/sidekiq-4.2.10/lib/sidekiq/cli.rb:148:in `each' | |
/www_space/zhirenhr/releases/20180909220036/vendor/bundle/ruby/2.4.0/gems/sidekiq-4.2.10/lib/sidekiq/cli.rb:148:in `handle_signal' |
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
> kill --ttin pid | |
2018-09-10T02:30:57.261Z 8172 TID-gpfysbf88 ProcessRunActionsJob JID-cbba7cd89adce6757179322a INFO: done: 0.04 sec | |
2018-09-10T02:31:19.493Z 8172 TID-gpfysbf88 ProcessRunActionsJob JID-9c4aee1741e26f0882f284f4 INFO: start | |
perform async process(1448067) actions -- false -- passed | |
2018-09-10T04:50:20.486Z 8172 TID-gpfwf6et8 WARN: Thread TID-gpfwf6et8 | |
2018-09-10T04:50:20.487Z 8172 TID-gpfwf6et8 WARN: /www_space/zhirenhr/releases/20180909220036/vendor/bundle/ruby/2.4.0/gems/sidekiq-4.2.10/lib/sidekiq/cli.rb:151:in `backtrace' | |
/www_space/zhirenhr/releases/20180909220036/vendor/bundle/ruby/2.4.0/gems/sidekiq-4.2.10/lib/sidekiq/cli.rb:151:in `block in handle_signal' | |
/www_space/zhirenhr/releases/20180909220036/vendor/bundle/ruby/2.4.0/gems/sidekiq-4.2.10/lib/sidekiq/cli.rb:148:in `each' | |
/www_space/zhirenhr/releases/20180909220036/vendor/bundle/ruby/2.4.0/gems/sidekiq-4.2.10/lib/sidekiq/cli.rb:148:in `handle_signal' |
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
#coding=utf8 | |
import itchat | |
# tuling plugin can be get here: | |
# https://github.com/littlecodersh/EasierLife/tree/master/Plugins/Tuling | |
from tuling import get_response | |
@itchat.msg_register('Text') | |
def text_reply(msg): | |
if u'作者' in msg['Text'] or u'主人' in msg['Text']: | |
return u'你可以在这里了解他:https://github.com/littlecodersh' |
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
{ | |
repository(owner: "facebook", name: "mention-bot") { | |
object(expression: "master") { | |
... on Commit { | |
blame(path: "cookieJar.js") { | |
ranges { | |
startingLine | |
endingLine | |
age | |
commit { |
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
{ | |
repository(owner: "facebook", name: "mention-bot") { | |
object(expression: "master") { | |
... on Commit { | |
blame(path: "cookieJar.js") { | |
ranges { | |
startingLine | |
endingLine | |
age | |
commit { |
NewerOlder