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
@app.route('/') | |
def index(): | |
print('index hit') | |
films = Film.query.all() | |
return render_template('index.html', films=films) |
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
nginx config | |
------------ | |
upstream theatertilt { | |
server unix://tmp/theatertilt.sock; | |
} | |
server { | |
listen 80; | |
charset utf-8; |
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 "./theatertilt/__init__.py", line 31, in <module> | |
import theatertilt.views | |
File "./theatertilt/views.py", line 9, in <module> | |
from theatertilt.database import db_session | |
File "./theatertilt/database.py", line 60, in <module> | |
init_db() | |
File "./theatertilt/database.py", line 58, in init_db | |
Base.metadata.create_all(bind=engine) | |
File "/usr/local/theatertilt/theatertilt_venv/local/lib/python2.7/site-packages/sqlalchemy/sql/schema.py", line 3622, in create_all |
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
--- | |
# file: main.yml | |
- hosts: fotk | |
remote_user: fakesudo | |
tasks: | |
- name: create a developer user | |
user: name={{ user }} | |
password={{ password }} | |
shell=/bin/bash |
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
// main app controller | |
// app.js | |
angular.module('app', ['ngNewRouter', 'app.home', 'app.detail', 'app.session']) | |
.controller('AppController', ['$router', AppController]); | |
function AppController($router) { | |
$router.config([ | |
{ path: '/', component: 'home' }, | |
{ path: '/session', component: 'session' }, | |
{ path: '/detail/:id', component: 'detail' } |
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
//app.js | |
angular.module('app', ['ngNewRouter', 'app.home', 'app.detail', 'app.session']) | |
.controller('AppController', ['$router', AppController]); | |
AppController.$routeConfig = [ | |
{ path: '/', component: 'home' }, | |
{ path: '/session', component: 'session' }, | |
{ path: '/detail/:id', component: 'detail' } | |
]; |
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
TypeError: Cannot read property 'path' of undefined | |
at serializeInstruction (http://localhost:8000/node_modules/angular-new-router/dist/router.es5.js:223:24) | |
at Object.router.registerViewport.activate (http://localhost:8000/node_modules/angular-new-router/dist/router.es5.js:177:31) | |
at http://localhost:8000/node_modules/angular-new-router/dist/router.es5.js:728:21 | |
at http://localhost:8000/node_modules/angular-new-router/dist/router.es5.js:797:26 | |
at Array.forEach (native) | |
at mapObj (http://localhost:8000/node_modules/angular-new-router/dist/router.es5.js:796:22) | |
at mapObjAsync (http://localhost:8000/node_modules/angular-new-router/dist/router.es5.js:792:19) | |
at ChildRouter.queryViewports (http://localhost:8000/node_modules/angular-new-router/dist/router.es5.js:749:14) | |
at ChildRouter.activatePorts (http://localhost:8000/node_modules/angular-new-router/dist/router.es5.js:727:19) |
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 I installed uwsgi | |
python uwsgiconfig.py --build core | |
python uwsgiconfig.py --plugin plugins/http core | |
command | |
./uwsgi --http :5000 --uwsgi-file /home/guyja/wsgi/wsgi.py | |
gives me |
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
/* common.factories.js */ | |
/* | |
* inspired by | |
* | |
* http://www.bennadel.com/blog/2720-creating-and-extending-a-lodash-underscore-service-in-angularjs.htm | |
*/ | |
/* |
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
INFO [watcher]: Changed file "/Users/guyjacks/projects/adr-demo/app/notes.model.js". | |
Chrome 44.0.2403 (Mac OS X 10.10.5) NotesModel get gets a note FAILED | |
Error: [$injector:modulerr] Failed to instantiate module notes.model due to: | |
Error: [$injector:modulerr] Failed to instantiate module restangular due to: | |
ReferenceError: _ is not defined | |
at Object.Configurer.init (/Users/guyjacks/projects/adr-demo/node_modules/restangular/dist/restangular.js:31:26) | |
at new <anonymous> (/Users/guyjacks/projects/adr-demo/node_modules/restangular/dist/restangular.js:757:14) | |
at invoke (/Users/guyjacks/projects/adr-demo/node_modules/angular/angular.js:4450:17) | |
at Object.instantiate (/Users/guyjacks/projects/adr-demo/node_modules/angular/angular.js:4458:27) | |
at provider (/Users/guyjacks/projects/adr-demo/node_modules/angular/angular.js:4293:36) |