Skip to content

Instantly share code, notes, and snippets.

@aluex
aluex / gist:7811a2bc37443fc0bf45
Created March 23, 2015 11:56
Solution to redundant_code
// Credit: token
#include <cstdio>
int cnt[1000000];
int n, m;
int buf;
int main()
{
FILE *key = fopen("output", "r");
#!/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>')
# 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):
@aluex
aluex / Dockerfile
Created June 12, 2020 22:48
Dockerfile for building taichi-mpm based on taichi-legacy
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