Skip to content

Instantly share code, notes, and snippets.

@MalphasWats
MalphasWats / post_to_GitHub.py
Created December 15, 2013 20:10
Post to GitHub Pages from Editorial
#coding: utf-8
import keychain
import console
import editor
import time
import re
import requests
import json
@MalphasWats
MalphasWats / get_blog_post.py
Created December 15, 2013 20:08
Get blog post from GitHub Pages site in Editorial
#coding: utf-8
import keychain
import console
import editor
import time
import re
import requests
import json
@MalphasWats
MalphasWats / flask_ajax.py
Created July 2, 2012 08:15
Making a basic AJAX request with Flask
# Answer to a question on Flask mailing list
# http://librelist.com/browser//flask/2012/6/30/using-ajax-with-flask/
# NOTE: *REALLY* don't do the thing with putting the HTML in a global
# variable like I have, I just wanted to keep everything in one
# file for the sake of completeness of answer.
# It's generally a very bad way to do things :)
#
from flask import (Flask, request, jsonify)
app = Flask(__name__)