Skip to content

Instantly share code, notes, and snippets.

View spookiestevie's full-sized avatar
👨‍🎓
Learning

spookiestevie spookiestevie

👨‍🎓
Learning
View GitHub Profile

Keybase proof

I hereby claim:

  • I am spookiestevie on github.
  • I am spookiestevie (https://keybase.io/spookiestevie) on keybase.
  • I have a public key ASBYbPtNQwgeGwLUnsDOMu4pbJ0uVETgravEa0pRMVNflwo

To claim this, I am signing this object:

@spookiestevie
spookiestevie / node_config.json
Created April 22, 2019 13:38
node config with api access
{
"fileLogLevel": "error",
"forging": {
"secret": ["SECRET"],
"access": {
"whiteList": [ "127.0.0.1" ]
}
},
"api": {
"enabled": true,
#Will split your copypastas for you, change maxlen depending on the maxlength, 2000 for discord
def splitpasta(copypasta):
maxlen = 2000
print (len(copypasta))
list = ([copypasta[i:i+maxlen] for i in range(0, len(copypasta), maxlen)])
for block in list:
print(block,'\n------------------END------------------\n')
@spookiestevie
spookiestevie / ellipticcurve.py
Created November 20, 2017 21:56
solutions for the elliptic curve in the range of 223
for x in range(1,224):
for y in range(1,224):
if (y**2) % 223 == (x**3 + 7) % 223:
print x,y
@spookiestevie
spookiestevie / rise_gettx.py
Last active October 2, 2017 20:16
This gist eliminates the need to connect to the rise api to get the most recent transaction from the blockchain - instead gathers the data from the blockexplorer itself which proves to be more efficient and effective.
from os import system
from time import sleep
import re
import pandas as pd #pip install of pandas is required
pd.set_option('max_rows',300) #pandas maxrow setting lim to 300
def rm_duplicates(x):
return re.sub(r'(.*?)\s{2,}(.*?)',r'\2',x) #re to filter repeated strings with 2 or less spaces