Skip to content

Instantly share code, notes, and snippets.

@shunghsiyu
shunghsiyu / wifi-login.js
Last active February 1, 2017 13:22
This is a script to be used together with Phantomjs to automatically login to CHT wifi access-points.
var url = 'http://captive.apple.com/';
var fs = require('fs');
var file = fs.open('credential', 'r');
var credentials = file.read().split('\n');
file.close();
// How often (in milliseconds) the program should check the login status.
var checkInterval = 5000;
// How long (in millisecond) should be program wait after the submit button
// on the login form is pressed before closing the page object.
@shunghsiyu
shunghsiyu / intro_to_python_20150825.ipynb
Last active August 26, 2015 13:51
An Introduction to Python for Developers
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.