View canvas_lti_variables
context_title: "$Context.title",
com_instructure_post_message_token: "$com.instructure.PostMessageToken",
com_instructure_assignment_lti_id: "$com.instructure.Assignment.lti.id",
com_instructure_originality_report_id: "$com.instructure.OriginalityReport.id",
com_instructure_submission_id: "$com.instructure.Submission.id",
com_instructure_file_id: "$com.instructure.File.id",
course_offering_sourced_id: "$CourseOffering.sourcedId",
context_id: "$Context.id",
context_sourced_id: "$Context.sourcedId",
message_document_target: "$Message.documentTarget",
View ec2nuke.sh
# !!!!!!!!!!!!!!!!! WARNING - Use this script at your own risk. !!!!!!!!!!!!!!!!!!!!!!!
# In the event that you need to clean out your AWS account you can use the following script to wipe out all EC2 instances and their
# related data.
# This script terminates all running EC2 instances in your account, removes the images, removes all EBS volumes and removes snapshots.
# You will need to run this with a user that has appropriate rights.
for region in us-east-2 us-east-1 us-west-1 us-west-2 ca-central-1 eu-central-1 eu-west-1 eu-west-2 ap-northeast-1 ap-southeast-1 ap-southeast-2 ap-south-1 ap-northeast-2 sa-east-1; do
echo $region
View dynamodb.json
{
"Applications" : {
"Type" : "AWS::DynamoDB::Table",
"Properties" : {
"TableName" : "Applications-${stage}",
"AttributeDefinitions": [ {
"AttributeName" : "name",
"AttributeType" : "S"
} ],
"KeySchema": [
View serverless.yml
service: lti
provider:
name: aws
runtime: nodejs4.3
iamRoleStatements:
- Effect: "Allow"
Action:
- "dynamodb:Scan"
- "dynamodb:Query"
- "dynamodb:DescribeStream"
View stub_context.js
"use strict";
import React from "react";
import assign from "object-assign";
var { func } = React.PropTypes;
var mui = require('material-ui');
var ThemeManager = new mui.Styles.ThemeManager();
View webpack.config.js
{ context: '/Users/jbasdf/projects/canvas_starter_app/client/config',
entry:
{ app:
[ 'webpack-dev-server/client?http://localhost:8080/assets/',
'webpack/hot/dev-server',
'/Users/jbasdf/projects/canvas_starter_app/client/js/app.jsx' ],
app_admin:
[ 'webpack-dev-server/client?http://localhost:8080/assets/',
'webpack/hot/dev-server',
'/Users/jbasdf/projects/canvas_starter_app/client/js/app_admin.jsx' ],
View facebook.js
var Facebook = {
init: function(){
if(!GLOBAL_SETTINGS.FBappId){ return; }
if(GLOBAL_SETTINGS.application_name){
Facebook.authorize_message = "Authorize your Facebook account for " + GLOBAL_SETTINGS.application_name;
}
Facebook.load_fb();
$('#facebook_connect').on('click', function(e){
e.preventDefault();
View Ember TextField With Arrow Keys
{{ view App.Textfield
class="form-control"
placeholderBinding="view.prompt"
valueBinding="view.value"
viewName="inputField"
arrow-up="arrowUp"
arrow-down="arrowDown"
}}
View Ember arrow keys
App.Textfield = Ember.TextField.extend({
init: function() {
this._super();
this.on("keyUp", this, this.interpretKeyEvents);
},
interpretKeyEvents: function(event){
var map = TM.Textfield .KEY_EVENTS;
var method = map[event.keyCode];
View ember-textfield
{{ view Ember.Textfield
class="form-control"
placeholderBinding="controller.prompt"
valueBinding="controller.value"
onEvent="keyPress"
action="typing"
}}