Skip to content

Instantly share code, notes, and snippets.

# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
import BaseHTTPServer, SimpleHTTPServer
import ssl
@uzikilon
uzikilon / phantomjs-test-runner.js
Created January 15, 2013 18:51
Jasmine Phantom Runner
/*global require:false,console:false,phantom:false */
/*jshint maxstatements:13,maxcomplexity:3 */
var system = require('system');
var page = require('webpage').create();
page.onConsoleMessage = function(msg) {
console.log(msg);
};
if (system.args.length != 2) {
console.log('Usage: phantomjs phantomjs-test-runner.js URL');
@aronwoost
aronwoost / README.md
Created August 9, 2011 14:47
Super basic implementation of the monocle framework (for displaying html files in book form)

This gist should give you a starting point, of how to implement the monocle framework.

The framework can much more. Check the examples in the test folder.

Make sure you have the monocle framework present in the folder js. You should clone it with git but you can also download it via the Download button.