Skip to content

Instantly share code, notes, and snippets.

@MalphasWats
MalphasWats / get_blog_post.py
Created Dec 15, 2013
Get blog post from GitHub Pages site in Editorial
View get_blog_post.py
#coding: utf-8
import keychain
import console
import editor
import time
import re
import requests
import json
@MalphasWats
MalphasWats / post_to_GitHub.py
Created Dec 15, 2013
Post to GitHub Pages from Editorial
View post_to_GitHub.py
#coding: utf-8
import keychain
import console
import editor
import time
import re
import requests
import json
@MalphasWats
MalphasWats / flask_ajax.py
Created Jul 2, 2012
Making a basic AJAX request with Flask
View flask_ajax.py
# 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__)