Skip to content

Instantly share code, notes, and snippets.

View jamescrosswell's full-sized avatar

James Crosswell jamescrosswell

  • Mental Desk Ltd.
  • Auckland, New Zealand
  • 21:13 (UTC +12:00)
View GitHub Profile
package myApp
object MyApp {
def main(args: Array[String]): Unit = {
val greeter = new Greeter()
greeter.Greet
}
@jamescrosswell
jamescrosswell / gist:a76da4b286f07acb8de0
Created September 29, 2014 09:57
login issues (app file)
import os
from flask import Flask
from flask.ext import restful
from controllers.login import Login
app = Flask(__name__, static_folder='static', static_url_path='')
app.secret_key = os.urandom(24)
# Add a route for the site root, which simply spits back the index.html page
@jamescrosswell
jamescrosswell / gist:47749693529573fb22cd
Created September 29, 2014 09:55
Flask login/logout issues
from flask.ext.restful import reqparse, Resource
from flask import session
class Login(Resource):
def __init__(self):
super(Login, self).__init__()
def get(self):
# Parse arguments