This file contains 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, jsonify, request | |
from sparkpost import SparkPost | |
app = Flask(__name__) | |
SPARKPOST_KEY = '<SPARKPOST_API_KEY>' | |
VALIDATION_CODE = '<OPEN_CHANNEL_PLATFORM_VALIDATION>' | |
@app.route('/message/push', methods=['POST']) |
This file contains 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
def load_obj(filename, indexed=True): | |
vertices = [] | |
textures = [] | |
normals = [] | |
out_vertices = [] | |
out_indices = [] | |
vertex_map = {} | |
with open(filename) as obj_file: |
This file contains 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> | |
<body><a href="ua-demo:/?key=5wRE6Z5fQsWsQoEykf4SUw&secret=9ObS64LCStOCRqDJelkfZw">try now</a></body> |
This file contains 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
g cube | |
v 0.0 0.0 0.0 | |
v 0.0 0.0 1.0 | |
v 0.0 1.0 0.0 | |
v 0.0 1.0 1.0 | |
v 1.0 0.0 0.0 | |
v 1.0 0.0 1.0 | |
v 1.0 1.0 0.0 | |
v 1.0 1.0 1.0 |
This file contains 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
var rAS = require('request-animation-stream'); | |
var canvas_el = document.getElementById('main-canvas'); | |
var context = canvas_el.getContext('2d'); | |
var render_stream = rAS(true, true); | |
var blue = 0; | |
var red = 0; |