Build starting from a Jupyter 2.x image.
docker build -t jupyterlab .
The following is from scotthelme.co.uk
with Content Security Policy (CSP) enabled(and a browser that supports it(http://caniuse.com/#feat=contentsecuritypolicy), you can tell the browser that it can only download content from the domains you explicitly allow http://www.html5rocks.com/en/tutorials/security/content-security-policy/ https://www.owasp.org/index.php/Content_Security_Policy I need to change our application code so we can increase security by disabling 'unsafe-inline' 'unsafe-eval'
#!/usr/bin/env python | |
#encoding: utf-8 | |
import urllib2 | |
import re | |
from base64 import b64decode | |
LIST_URL = 'https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt' | |
DECODE_FILE = 'decode.txt' | |
BLACK_FILE = 'gfw.url_regex.lst' |
# -*- coding:utf-8 -*- | |
class LoupQuery(Query): | |
pass | |
db_session = scoped_session( | |
sessionmaker( | |
autocommit=False, | |
autoflush=False, |
import wx | |
#from wx.lib.pubsub.core import Publisher #If you want to manage your own publisher use this | |
from wx.lib.pubsub import pub | |
import threading | |
class ParcelData(object): | |
def __init__(self,count,current,message): | |
self.parcel_count = count | |
self.current_parcel = current | |
self.message = message |
package log | |
import ( | |
"fmt" | |
"github.com/Sirupsen/logrus" | |
"runtime" | |
"strings" | |
) | |
var logger = logrus.New() |
"""Demo of streaming requests with Tornado. | |
This script features a client using AsyncHTTPClient's body_producer | |
feature to slowly produce a large request body, and two server | |
handlers to receive this body (one is a proxy that forwards to the | |
other, also using body_producer). | |
It also demonstrates flow control: if --client_delay is smaller than | |
--server_delay, the client will eventually be suspended to allow the | |
server to catch up. You can see this in the logs, as the "client |