from flask import Flask, render_template
from lti import ToolConfig, ToolConsumer
app = Flask(__name__)
@app.route('/')
def index():
consumer = ToolConsumer(
consumer_key='jetstyle-key',
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
#!/usr/bin/env python | |
from PIL import Image, ImageDraw | |
original_points = [[[1912, 197]],[[1909, 209]],[[1906, 220]],[[1891, 274]],[[1878, 318]],[[1863, 367]],[[1852, 402]],[[1841, 436]],[[1826, 482]],[[1820, 500]],[[1793, 578]],[[1782, 609]],[[1757, 678]],[[1741, 722]],[[1717, 787]],[[1694, 848]],[[1652, 958]],[[1626, 1025]],[[1624, 1029]],[[1623, 1030]],[[1608, 1031]],[[1552, 1033]],[[1522, 1034]],[[1478, 1035]],[[1419, 1036]],[[531, 1044]],[[314, 1044]],[[294, 1043]],[[293, 1042]],[[292, 1040]],[[284, 1019]],[[263, 962]],[[211, 817]],[[201, 789]],[[189, 755]],[[175, 715]],[[167, 692]],[[154, 654]],[[120, 552]],[[108, 515]],[[98, 484]],[[92, 465]],[[87, 449]],[[71, 397]],[[61, 364]],[[56, 347]],[[38, 284]],[[33, 266]],[[25, 237]],[[21, 222]],[[16, 203]],[[10, 180]],[[10, 176]],[[19, 175]],[[45, 173]],[[73, 171]],[[103, 169]],[[121, 168]],[[184, 165]],[[207, 164]],[[262, 162]],[[294, 161]],[[334, 160]],[[387, 159]],[[509, 158]],[[541, 158]],[[1424, 161]],[[1492, 162]],[[1542, 163]],[[1583, 164]],[[1619, 165 |
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
// code block #1 | |
function func(s, a, b) { | |
if (s.match(/^$/)) { | |
return -1; | |
} | |
var i = s.length -1; | |
var aIndex = -1; |
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
$ cvlc -vvv v4l2:///dev/video0 :input-slave=alsa:// :v4l2-audio-input=0 :v4l2-width=640 :v4l2-height=360 :v4l2-adev=hw:1,0 :v4l2-audio-method=2 :v4l2-io=1 :v4l2-stereo=0 :sout="#transcode{vcodec=theo,acodec=vorb,ab=128,channels=2,samplerate=44100}:http{mux=ogg,dst=:8080/webcam.ogg}" | |
VLC media player 2.2.2 Weatherwax (revision 2.2.2-0-g6259d80) | |
[00000000023d7148] core libvlc debug: VLC media player - 2.2.7 Umbrella | |
[00000000023d7148] core libvlc debug: Copyright © 1996-2017 the VideoLAN team | |
[00000000023d7148] core libvlc debug: revision 2.2.2+git20170721+r59033+56~ubuntu16.04.1 | |
[00000000023d7148] core libvlc debug: configured with ./configure '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' '--disable-maintainer-mode' '--disable-dependency-tracking' '--config-cache' |