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 | |
# pip3 install requests | |
import requests | |
ignore_prefix = len('http://id.crossref.org/prefix/') | |
cursor = "*" |
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
package main | |
// plotter.go | |
// Joe Wass 2012 | |
// joe@afandian.com | |
import ( | |
"fmt" | |
"image" | |
"image/color" |
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
import httplib | |
ip = "127.0.0.1" | |
conn = httplib.HTTPConnection("localhost", 10000) # address and port of server | |
conn.request("GET", "/ping/%s/"%ip) | |
response = conn.getresponse() | |
pingOk = False |
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
import web | |
import subprocess | |
urls = ( | |
'/ping/(.*)/', 'ping' | |
) | |
app = web.application(urls, globals()) | |
class ping: |
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
import HTTPClient.*; | |
import java.io.*; | |
/* trying to get this bit to work. Without it you get an annoying dialogue box asking about cookies permission. | |
class FolktunePolicyHandler implements CookiePolicyHandler | |
{ | |
boolean acceptCookie(Cookie cookie, RoRequest req, RoResponse resp) | |
{ | |
// yeah whatever | |
return true; |