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
{ | |
"metadata": { | |
"comment": "Update record", | |
"app_created_by": "Spatial Networks", | |
"app_name": "Fulcrum Web", | |
"app_version": "", | |
"app_build": "", | |
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36" | |
}, | |
"min_lat": 39.5732612150347, |
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
from TileStache import WSGITileServer, splitPathInfo | |
import re | |
# | |
# Decorator for the WSGITileServer that allows for custom tilestache configuration. | |
# | |
# Takes in a tilestache config file and a series of parameter names. They'll be sent to the p |
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
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var console = require('demo-console'); | |
var Fulcrum = require('fulcrum-app'); | |
var fulcrum = new Fulcrum({api_key: window.prompt('API Key plz, thanks.')}) | |
fulcrum.forms.search({}, function (error, data) { | |
if (error) { | |
console.log(error); |
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
import logging | |
from pylons import config, request, response, session, tmpl_context as c | |
from pylons.controllers.util import abort, redirect_to, url_for | |
from pylons_openid.lib.base import BaseController, render | |
log = logging.getLogger(__name__) | |
import urllib2 | |
import md5 | |
import simplejson as json_ |
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
from sqlalchemy.orm import * | |
from sqlalchemy import Table, Column, ForeignKey, Integer | |
from sqlalchemy.types import Integer, Unicode, String, DateTime | |
from pylons_openid.model import meta | |
def init_model(engine): | |
"""Call me before using any of the tables or classes in the model""" | |
meta.Session.configure(bind=engine) | |
meta.engine = engine |
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
import logging | |
from pylons import request, response, session, tmpl_context as c | |
from pylons.controllers.util import abort, redirect_to | |
from pylons_openid.lib.base import BaseController, render | |
log = logging.getLogger(__name__) | |
from pylons_openid.lib.auth import * | |
class RootController(BaseController): |
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
CREATE DATABASE `pylons_openid`; | |
USE pylons_openid; | |
CREATE TABLE `user` ( | |
`id` int(11) NOT NULL auto_increment, | |
`username` varchar(128) default NULL, | |
`password` varchar(128) default NULL, | |
`acl` varchar(16) NOT NULL, | |
`name` varchar(32) default NULL, |
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
from sqlalchemy.orm import * | |
from sqlalchemy import Table, Column, ForeignKey, Integer | |
from sqlalchemy.types import Integer, Unicode, String, DateTime | |
from pylons_openid.model import meta | |
def init_model(engine): | |
"""Call me before using any of the tables or classes in the model""" | |
meta.Session.configure(bind=engine) | |
meta.engine = engine |
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
from sqlalchemy.orm import * | |
from sqlalchemy import Table, Column, ForeignKey, Integer | |
from sqlalchemy.types import Integer, Unicode, String, DateTime | |
from pylons_openid.model import meta | |
def init_model(engine): | |
"""Call me before using any of the tables or classes in the model""" | |
meta.Session.configure(bind=engine) | |
meta.engine = engine |
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
import logging | |
from pylons import request, response, session, tmpl_context as c | |
from pylons.controllers.util import abort, redirect_to | |
from pylons_openid.lib.base import BaseController, render | |
log = logging.getLogger(__name__) | |
from pylons_openid.lib.auth import * | |
class RootController(BaseController): |
OlderNewer