Skip to content

Instantly share code, notes, and snippets.

View AwwCookies's full-sized avatar
🏠
Working from home

AwwCookies AwwCookies

🏠
Working from home
View GitHub Profile
@AwwCookies
AwwCookies / flaskwithcron.py
Created March 6, 2016 18:54 — forked from chadselph/flaskwithcron.py
flask with "cron"-like loop
from flask import Flask, render_template, jsonify, request
from threading import Timer, Thread
from time import sleep
app = Flask(__name__)
@app.route("/api/<method>")
def api(method):
data = {