Skip to content

Instantly share code, notes, and snippets.


Keyul keyuls

View GitHub Profile
View dating_cards_drag_swipe_logic.js
/* dragging logic for */
/* by @levelsio */
/* MIT license */
/* <dragging logic> */
$('body').on('mousedown touchstart','.card',function(e) {
if(!currentCardUserId) return;
if($('card.match_card').is(':visible')) return;
if(typeof e.originalEvent.touches !=='undefined') {
/* touch device */
View gist:5648af3a2867e9efe17e186cbe8907ef
keyuls /
Last active Oct 24, 2017
Connecting Giphy with Chatfuel
from flask import Flask,request
import os
from flask import make_response
import json
app = Flask(__name__)
def send_gif():
query = request.args.get('userinput')
keyuls / response.json
Last active Oct 16, 2016
Response for facebook in
View response.json
"id": "5998472d-f321-4ad5-b365-def1f29e79c4",
"timestamp": "2016-10-16T03:32:39.977Z",
"result": {
"source": "agent",
"resolvedQuery": "bots",
"action": "getnewestpost",
"actionIncomplete": false,
"parameters": {
"cat": "bots"
keyuls /
Last active Sep 21, 2017
connecting to
from flask import Flask, request
from flask import make_response
import requests
import os
import json
app = Flask(__name__)
def cf_connect():