This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' /> | |
<style> | |
body { margin:0; padding:0; } | |
#map { position:absolute; top:0; bottom:0; width:100%; } | |
.marker-properties { | |
border-collapse:collapse; |
This file contains hidden or 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 werkzeug.contrib.profiler import ProfilerMiddleware | |
app = Flask(__name__) | |
app.wsgi_app = ProfilerMiddleware(app.wsgi_app) |
This file contains hidden or 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
{% extends "layout.html" %} | |
{% block body %} | |
<h1>Search Results</h1> | |
<ul> | |
{% for person in results %} | |
<li> | |
<a href="/person/{{ person.id }}">{{ person.first_name }} {{ person.last_name}}</a> | |
{{person.num_roles}} | |
</li> | |
{% endfor %} |
This file contains hidden or 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
{ | |
"madlibs": [ | |
{ | |
"title": "The Walking Story", | |
"text": "One day :name went for a walk to :place", | |
"fields": [ | |
{ | |
"title": "Someone's name", | |
"label": ":name" | |
}, |
This file contains hidden or 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
<? | |
$trello_key = '123412341234123412341234'; | |
$trello_api_endpoint = 'https://api.trello.com/1'; | |
$trello_list_id = '1234123412341234123412341234'; | |
$trello_member_token = '12341234123412341234123412341234'; // Guard this well | |
$ch = curl_init("$trello_api_endpoint/cards"); | |
curl_setopt_array($ch, array( | |
CURLOPT_SSL_VERIFYPEER => false, // Probably won't work otherwise | |
CURLOPT_RETURNTRANSFER => true, // So we can get the URL of the newly-created card |
NewerOlder