Skip to content

Instantly share code, notes, and snippets.

View wendyjap's full-sized avatar

Wendy Jap wendyjap

View GitHub Profile
@wendyjap
wendyjap / css_responsive_web_skeleton.css
Created September 18, 2016 17:26
CSS Responsive Web Skeleton
/* COMMON STYLES
------------------------------------- */
/*--- Screen size code / lg ---*/
@media (min-width: 1281px) {
}
@wendyjap
wendyjap / pip_install_pygraphviz_on_ubuntu.txt
Created July 15, 2016 07:00
pip install pygraphviz on Ubuntu
pip install --install-option="--include-path=/usr/local/Cellar/graphviz/2.38.0/include/graphviz" --install-option="--library-path=/usr/local/Cellar/graphviz/2.38.0/lib/graphviz" pygraphviz
@wendyjap
wendyjap / test_https_server.py
Created August 14, 2014 02:55
Simple HTTPS server in python3
from http.server import HTTPServer,SimpleHTTPRequestHandler
from socketserver import BaseServer
import ssl
HOSTNAME = 'localhost'
HTTPS_PORT = 8443
httpd = HTTPServer((HOSTNAME, HTTPS_PORT), SimpleHTTPRequestHandler)
httpd.socket = ssl.wrap_socket(httpd.socket, keyfile='server.key', certfile='server.crt', server_side=True)
print('Running https server on port {0}. Check it out with open https://{1}:{0}'.format(HTTPS_PORT, HOSTNAME))
httpd.serve_forever()