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
private class Modulus { | |
public final BigInteger quotient; | |
public final int bits; | |
public Modulus(BigInteger quotient, int bits) { | |
this.quotient = quotient; | |
this.bits = bits; | |
} | |
public BigInteger compute() { |
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 socket | |
import struct | |
import ctypes | |
import re | |
import smtplib | |
import math | |
import traceback | |
from urllib.request import urlopen | |
# Force an email? |
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
from html.parser import HTMLParser | |
from urllib.request import (urlopen, ProxyHandler, build_opener, OpenerDirector) | |
import re | |
#parses html page for data between <td></td> | |
#works for http://us-proxy.org/ and http://free-proxy-list.net/uk-proxy.html | |
class ProxyParser(HTMLParser): | |
def __init__(self): | |
HTMLParser.__init__(self) | |
self._read = 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 socket | |
import struct | |
import ctypes | |
import re | |
from urllib.request import urlopen | |
HTTP = 'http://' | |
RS3HOST = 'world1.runescape.com' | |
OSRSHOST = 'oldschool1.runescape.com' | |
EXT = '/k=3/jav_config.ws' |
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
from html.parser import HTMLParser | |
from urllib.request import urlopen | |
#parses html page for data between <td></td> | |
#works for http://us-proxy.org/ and http://free-proxy-list.net/uk-proxy.html | |
class ProxyParser(HTMLParser): | |
def __init__(self): | |
HTMLParser.__init__(self) | |
self._read = False | |
self._count = 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
def make_point(x, y): | |
def get(index): | |
if index==0: | |
return x | |
elif index==1: | |
return y | |
return get | |
def x_point(p): | |
return p(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
ClassTree: { | |
af(0, 0, 0) | |
ah(0, 0, 0) | |
al(0, 0, 0) | |
ap(0, 1, 2) -> ab(1, 0, 0) | |
ap(0, 1, 2) -> bb(1, 0, 0) | |
ar(0, 0, 0) | |
as(0, 0, 0) | |
ay(0, 0, 0) | |
be(0, 0, 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
╬ Built context in 5129ms | |
╬ Running analysers... | |
≡ Bag identified as fd | |
º cache identified as fd.v ([Lgs;) | |
º current identified as fd.e (Lgs;) | |
º currentIndex identified as fd.h (I) * 1 | |
º head identified as fd.m (Lgs;) | |
º size identified as fd.x (I) * 1 | |
» Identified 5 out of 5 fields & 0 out of 0 methods in 2ms. |
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
╬ Built context in 5728ms | |
╬ Running analysers... | |
≡ Bag identified as fd | |
º nodes identified as fd.v ([Lgs;) | |
» Identified 1 out of 1 fields in 0ms. | |
≡ BoundaryObject identified as cn | |
º backupRenderable identified as cn.j (Lcj;) | |
º hash identified as cn.i (I) * 0 | |
º renderable identified as cn.p (Lcj;) |
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
@Override | |
public boolean verifyClass(ClassInfo node) { | |
return (getFieldCount(node, getClassFieldName(node), 0x1) == 1 && getFieldCount(node, getClassFieldName(node), 0) == 1 && | |
getFieldCount(node, "J", 0x1) == 1 && nonStaticMethodSize(node) == 3 && node.superName().equals("java/lang/Object")); | |
} |
NewerOlder