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
HOW DO I REPRESENT THE FOLLOWING JEAP TEMPLATE IN AN ABSTRACT SYNTAX TREE? | |
#### jeap template | |
people = | |
{% for person in people %} | |
name = {{ person.name }} | |
{% end %} | |
#### end jeap template |
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 flask import Blueprint, render_template | |
minnows = Blueprint('minnows', __name__, template_folder='minnows') | |
@minnows.route('/') | |
def list(): | |
#return 'minnows list' | |
return render_template('minnows/list.html') | |
@minnows.route('/create') |
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
// #### I'm using this code to create a user | |
// #### User's have a User record and a profile record | |
// My factories for interacting w/ firebase are at the bottom | |
$scope.createUser = createUser = function() { | |
// Log the new user in and create a profile | |
var pass = function(newUser){ |
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
d | |
$$conf: Object | |
$id: "profile" | |
$priority: null | |
$value: "-JhwkOAAS5HuGQhe3j-P" | |
__proto__: Object | |
$$error: function (a){c.error(a),this.$destroy(a)} | |
$$notify: function (){var a=this,b=this.$$conf.listeners.slice();angular.forEach(b,function(b){b[0].call(b[1],{event:"value",key:a.$id})})} | |
$$scopeUpdated: function (a){return this.$inst().$set(b.toJSON(a))} | |
$$updated: function (a){var c=b.updateRec(this,a);return b.applyDefaults(this,this.$$defaults),c} |
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
<?xml version='1.0' encoding='utf-8'?> | |
<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" package="com.ionicframework.videopractice469203" xmlns:android="http://schemas.android.com/apk/res/android"> | |
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" /> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | |
<application android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name" android:supportsRtl="true"> | |
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style |
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
-- database.py -- | |
import os | |
from sqlalchemy import create_engine | |
from sqlalchemy.orm import scoped_session, sessionmaker | |
from sqlalchemy.ext.declarative import declarative_base | |
basedir = os.path.abspath(os.path.dirname(__file__)) | |
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
Traceback (most recent call last): | |
File "/Users/guyjacks/projects/venv/theatertilt/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__ | |
return self.wsgi_app(environ, start_response) | |
File "/Users/guyjacks/projects/venv/theatertilt/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app | |
response = self.make_response(self.handle_exception(e)) | |
File "/Users/guyjacks/projects/venv/theatertilt/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception | |
reraise(exc_type, exc_value, tb) | |
File "/Users/guyjacks/projects/venv/theatertilt/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app | |
response = self.full_dispatch_request() | |
File "/Users/guyjacks/projects/venv/theatertilt/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request |
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
[uwsgi] | |
chdir = /opt/apps/theatertilt | |
venv = /home/guyja/virtenv/theatertiltapp | |
threads = 2 | |
socket = /tmp/theatertiltapp.sock | |
chown-socket = www-data | |
chmod-socket = 750 | |
wsgi-file = theatertilt/__init__.py | |
callable = app | |
logger = file:/tmp/theatertiltapp-uwsgi.log |
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 flask import Flask | |
from theatertilt.database import db_session | |
app = Flask(__name__) | |
app.secret_key="not my real key" | |
import theatertilt.views | |
def shutdown_session(exception=None): |
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
<html lang="en"><head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<link rel="stylesheet" href="../static/vendors/bootstrap.min.css"> | |
</head> | |
<body> | |
<div class="container"> |
OlderNewer