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 python3 | |
import re, subprocess | |
def parse_line(line): | |
"returns (SECURITY, RSSI) if the line is a wifi network" | |
pattern = ':'.join(['[a-f0-9]{2}']*6) | |
reg = re.search(pattern, line) | |
try: | |
latter = line[reg.end():].split() | |
return (latter[-1], int(latter[0])) |
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
<html> | |
<head> | |
<script src='http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js'></script> | |
<script> | |
function isCached(img_src) { | |
var dfd = $.Deferred(); | |
var start_time = $.now(); | |
var img; | |
var timeout = setTimeout(function() { |
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
print(requests.post('https://www.calvin.edu/dwr/call/plaincall/CalendarAjax.findEvents.dwr', 'callCount=1\nwindowName=\nc0-scriptName=CalendarAjax\nc0-methodName=findEvents\nc0-id=0\nc0-param0=date:1387602000000\nc0-param1=date:1387689499000\nc0-param2=array:[]\nc0-param3=array:[]\nc0-param4=array:[]\nc0-param5=\nc0-param6=\nc0-param7=\nc0-param8=\nbatchId=0\ninstanceId=0\npage=/calendar/index.html\nscriptSessionId=asdf\n').content) |
NewerOlder