- should == '1'
- should_not == '1'
zombie.should include(tweet)
(function() { | |
var app = angular.module('notebook', []); | |
app.controller("NotebookController", function() { | |
this.notes = [ | |
{ | |
id: "note1", | |
title: 'First Note', | |
body: 'First Note\nCheck it out!', | |
classes: "green", | |
},{ |
<?php | |
// Only show "save" button if user_id not filled in. | |
$form['save'] = array( | |
'#type' => 'submit', | |
'#value' => t('Save for later'), | |
'#submit' => array('dance_code_codingsheet_form_save'), | |
'#limit_validation_errors' => array(), | |
'#states' => array( | |
'visible' => array( | |
':input[name="user_id"]' => array('value' => ''), |
# this is how we run our modular app | |
require "./sinatra_mod_app" | |
run MyApp |
from flask import Flask | |
# create an instance of the Flask class | |
app = Flask(__name__) | |
# create a route with the route decorator | |
# it binds a route to a function | |
@app.route('/') | |
def hello(): | |
print "Hello, from Flask!" |
# roles available are: instructor, learner, ta, designer | |
def lib_url(role, campus, school=nil) | |
if role == 'instructor' | |
if campus == 'AMC' | |
"https://hslibrary.ucdenver.edu/" | |
elsif campus == 'DDC' | |
"https://library.auraria.edu/" | |
end | |
elsif role == 'learner' | |
if campus == 'AMC' |
# create demo tabs app | |
ionic start ionicTabs tabs | |
cd ionicTabs | |
ionic platform add android | |
ionic build android | |
# install on phone, since android emulator will take 30 minutes to load and then fail | |
adb install platforms/android/ant-build/ionicTabs-debug.apk |
# roles available are: instructor, learner, ta, designer | |
# campus: DDC or AMC | |
def lib_url(role, campus, level='undergraduate', school=nil) | |
if campus == 'DDC' && level == 'undergraduate' | |
case role | |
when 'instructor' | |
"http://library.auraria.edu/" | |
when 'learner' | |
"http://library.auraria.edu/" | |
else |
angular.module('myApp', ['ionic', 'myApp.services', 'myApp.controllers']) | |
.run(function(DB) { | |
DB.init(); | |
}); |