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/python | |
import praw | |
print "Tubby bot v0.1 by Jake" | |
print "======================\n" | |
print "Initialising praw reddit object" | |
r = praw.Reddit(user_agent="Tubby bot by Jake") | |
print "Logging in as tubby-bot" | |
r.login("tubby-bot") | |
print "Getting overview from /u/marktaylorofficial" | |
user = r.get_redditor("marktaylorofficial") |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#define TRUE 1 | |
#define FALSE 0 | |
int main (int argc, char *argv[]){ | |
int result = function(); |
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
const jwt_simple = require('jwt-simple'); | |
const fetch = require('node-fetch'); | |
const qs = require('query-string'); | |
const JWT_BEARER_URI = 'urn:ietf:params:oauth:grant-type:jwt-bearer'; | |
const WELKIN_ENDPOINT_URL = 'https://api.welkinhealth.com/v1/token'; | |
async function getToken() { | |
const tokenData = { |
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
/** | |
ASK QWOKKA: Your whatsapp buddy for recommending great movies and TV shows. | |
TRY IT NOW: https://ask.qwokka.io | |
*/ | |
import * as functions from "firebase-functions"; | |
import * as admin from "firebase-admin"; | |
import axios from "axios"; | |
import { |