Skip to content

Instantly share code, notes, and snippets.

View RiceeeChang's full-sized avatar

Rice RiceeeChang

  • Nation Taiwan University
  • Taipei, Taiwan
View GitHub Profile
"payload": {
"template_type":"button",
"text":"<MESSAGE_TEXT>",
"buttons":[
<BUTTON_OBJECT>,
<BUTTON_OBJECT>,
...
]
}
@RiceeeChang
RiceeeChang / messenger_profile.json
Last active November 8, 2018 12:04
Messenger profile send data
{
"get_started": {
"payload":"<GET_STARTED_PAYLOAD>"
},
"greeting": [
{
"locale": "default",
"text": "Hello!"
},
{
@RiceeeChang
RiceeeChang / attachment.json
Last active October 29, 2018 12:52
Messenger Chatbot messenger with image attachment
{
"type": <image|audio|video|file|template>,
"payload": <PAYLOAD>
}
@RiceeeChang
RiceeeChang / cse_intitle.html
Created September 27, 2017 11:33
Google Custom Search Engine always let search with "intitle:"
<gcse:searchresults-only gname="results"></gcse:searchresults-only>
@RiceeeChang
RiceeeChang / ImagePreview.html
Created September 26, 2017 10:47
input select image preview with jquery
<input type="file" name="cover">
<img id="cover_preview" src="">
class Application(tornado.web.Application):
def __init__(self):
handlers = [(r"/", BaseHandler),
(r"/scheduler", SchedulerHandler)]
settings = dict()
super(Application, self).__init__(handlers, **settings)
class BaseHandler(tornado.web.RequestHandler):
def get(self):
self.write("Hello, world!")