Skip to content

Instantly share code, notes, and snippets.

View jimtje's full-sized avatar
🏠
Working from home

jim zhou jimtje

🏠
Working from home
View GitHub Profile
Verifying my Blockstack ID is secured with the address 1JK8tyAHmVNhcksDiXmKW7q147e7aMgAxd https://explorer.blockstack.org/address/1JK8tyAHmVNhcksDiXmKW7q147e7aMgAxd
def calc_prop_length(run_length, total_length, success_probability):
P = [None for i in range(0, total_length + 1)]
fail_probability = 1 - success_probability
for i in range(0, run_length):
P[i] = 0
P[run_length] = success_probability ** run_length
for i in range(run_length, total_length):
P[i + 1] = P[i] + (1 - P[i - run_length]) * fail_probability * (success_probability ** run_length)
return P[total_length]
This file has been truncated, but you can view the full file.
<?xml version='1.0' encoding='UTF-8'?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
<channel>
<title>Audm Feed</title>
<link>https://www.audm.com</link>
<description>Audm</description>
<itunes:explicit>no</itunes:explicit>
<docs>http://www.rssboard.org/rss-specification</docs>
<generator>python-podgen v1.1.0 https://podgen.readthedocs.org</generator>
<language>en-US</language>
import requests
import sys
import re
import urllib3
import pprint
from urllib.parse import quote_plus
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
def command(command, ip, port, socks):
c = quote_plus(command)
This file has been truncated, but you can view the full file.
[04:46:10] DEBUG [web3.RequestManager._make_request:132] Making request. Method: txpool_content
[04:46:10] DEBUG [web3.providers.IPCProvider.make_request:230] Making request IPC. Path: /home/debian/ethereum/eth.ipc, Method: txpool_content
[04:46:13] DEBUG [__main__.ipc_logs:15] AttributeDict({'66562': AttributeDict({'blockHash': None, 'blockNumber': None, 'from': '0x00000017494c2353dfcfc88d7668e0499af1619b', 'gas': '0x802c8', 'gasPrice': '0x218711a000', 'hash': '0x100de495278dec1de70fb40fe0dd34a61b3f6113e4331ae1187128daf1613b96', 'input': '0x0000ebc38a001401070000000014d1000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48b4e16d0168e52d35cacd2c6185b44281ec28c9dc0000002a1049062c6cfd69bd38fbaf3b0559df1dbbc92c68a17b587caf4f9329f0e372e3a78d23a46de6b5000000001bc16d674ec800000000000000000000743aa3805ffb3dbb000000000000000000000000000000000000000000000000000000005ff2133b0155157523005ac8a33a9bbcfd3e1d1c721d6c514aeb470acecf0ea94045a7e36d0595cf794676da726f58ae7b59595074e1c705d9b612f5296ab9cdadf3ccee87b857a2a0f127fea04a

Keybase proof

I hereby claim:

  • I am jimtje on github.
  • I am jimzhou (https://keybase.io/jimzhou) on keybase.
  • I have a public key ASCk9fQ5nIbLSBoUT9avViXKaeZjNbdxRHUxL0E9mxfotAo

To claim this, I am signing this object: