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> | |
<script src="https://d3js.org/d3.v4.min.js"></script> | |
<div id="chart0"></div> | |
<script> | |
var data = { "studyGuide":{ | |
"count":20, | |
"avgTime":"4 minutes and 32 seconds", |
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
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.4.1/d3.js"></script> | |
<div class="panel panel-primary"> | |
<div class="panel-heading"><strong>Activity Per Unit</strong></div> | |
<div class="panel-body"> | |
<div class="chart0"></div> | |
</div> | |
</div> | |
<div class="panel panel-primary"> |
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
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.4.1/d3.js" charset="utf-8"></script> | |
<style> | |
.line { | |
fill: none; | |
stroke: steelblue; | |
stroke-width: 2px; | |
} | |
.bar { |
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
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.4.2/d3.js"></script> | |
<style> | |
.line { | |
fill: none; | |
stroke: steelblue; | |
stroke-width: 2px; | |
} | |
.bar { |
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 q = require('q'); | |
var twilio = require('twilio'); | |
var http = require('http'); | |
var qs = require('querystring'); | |
var express = require('express'); | |
var app = express(); | |
var accountSid = 'A'; // Your Account SID from www.twilio.com/console | |
var authToken = '4'; // Your Auth Token from www.twilio.com/console |
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 twilio.rest import TwilioRestClient | |
from flask import Flask | |
from flask import request | |
import pprint | |
pp = pprint.PrettyPrinter(indent=4) | |
app = Flask(__name__) | |
account_sid = 'AC...'; | |
auth_token = '4c...'; |
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 knex = require('knex')(require('./knexfile')); | |
var d = new Date(); | |
var n = d.toISOString(); | |
var insert1 = {"To": "+13", | |
"From": "+18", | |
"Text": "Test 1"}; | |
console.log("insert1",insert1); | |
knex.insert(insert1).into("texts").then(function (id) { |
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
module.exports = { | |
development: { | |
client: 'sqlite3', | |
pool: { min: 0, max: 7 }, | |
connection: { | |
filename: './dev.sqlite' | |
}, | |
useNullAsDefault: true | |
} | |
} |
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
exports.up = function (knex, Promise) { | |
console.log('creating texts table') | |
return knex.schema.createTableIfNotExists('texts', function (table) { | |
table.increments('id') | |
table.string('To') | |
table.string('From') | |
table.string('Text') | |
table.datetime('Date') | |
}) | |
} |
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
Subprocess (:PROCESS #<SB-IMPL::PROCESS :EXITED 1> | |
:OUTPUT-STREAM | |
#<SB-SYS:FD-STREAM for "descriptor 7" {100623CE53}>) | |
with command ("g++" "-m64" "-Wno-write-strings" | |
"-I/home/k/quicklisp/dists/quicklisp/software/iolib-v0.8.1/src/grovel/" | |
"-o" | |
"/home/k/.cache/common-lisp/sbcl-1.3.3.debian-linux-x64/home/k/quicklisp/dists/quicklisp/software/iolib-v0.8.1/src/syscalls/ffi-types-unix" | |
"/home/k/.cache/common-lisp/sbcl-1.3.3.debian-linux-x64/home/k/quicklisp/dists/quicklisp/software/iolib-v0.8.1/src/syscalls/ffi-types-unix.c") | |
exited with error code 1 | |
[Condition of type UIOP/RUN-PROGRAM:SUBPROCESS-ERROR] |
OlderNewer