This file contains hidden or 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 ubuntu:18.04 | |
RUN apt update | |
RUN apt -y install clang | |
RUN apt -y install git | |
RUN apt -y install wget | |
RUN apt -y install python3 | |
RUN apt -y install python3-numpy | |
RUN apt -y install cmake | |
RUN apt -y install python3-pip | |
RUN apt -y install python3-pyqt5 |
This file contains hidden or 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
# modified from https://ericstrong.org/renaming-pdf-files-automatically-using-python/ | |
import PyPDF2 | |
import os | |
import string | |
# Modify this directory | |
pdf_dir = r"./" | |
def extractTitle(pdfdict): |
This file contains hidden or 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/python | |
from os import listdir | |
from os.path import isfile, join | |
import urllib2 | |
import re | |
import json | |
from collections import defaultdict | |
import networkx as nx | |
contractAddrRE = re.compile(r'<tr><th>Contract Address</th><td>0x(?P<contractAddr>[0-9a-f]+)</td></tr>') |
This file contains hidden or 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
// Credit: token | |
#include <cstdio> | |
int cnt[1000000]; | |
int n, m; | |
int buf; | |
int main() | |
{ | |
FILE *key = fopen("output", "r"); |