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
#!/usr/bin/python | |
. | |
""" | |
lib.py - a utility library for both acousting coupler modules. | |
Do not run this code directly. | |
""" | |
import time |
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
#!/usr/bin/env python | |
import sys # stderr | |
import random # shuffle | |
import copy | |
import pickle | |
try: | |
input = raw_input | |
except NameError: |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
"""Loads an items.xml OpenTibia database file.""" | |
import xml.etree.ElementTree as ET | |
def itemnode_to_dict(node): | |
"""Translates an xml.etree.ElementTree.Element element with a Tibia item |
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
#!/usr/bin/env python3 | |
import time | |
import subprocess | |
import copy | |
from enum import Enum, auto | |
import typing as T | |
import random | |
T_POS = T.List[int] |
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
#!/usr/bin/env python2 | |
import subprocess | |
import datetime | |
import csv | |
import collections | |
import sys | |
import socket | |
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
#!/usr/bin/env python3 | |
import dateutil.parser | |
import textwrap | |
import argparse | |
import telegram_scraper | |
def main(): | |
parser = argparse.ArgumentParser() |
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 python:3.8 | |
ADD a.c . | |
ADD a.py . | |
ADD buf.asm . | |
RUN apt-get update && apt-get install nasm && nasm buf.asm && make a | |
CMD /bin/bash -c 'python3 a.py & sleep 1; ./a ; echo "exit code=$?"' |
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 python:3.8 | |
ADD ./requirements.txt . | |
RUN python3 -m pip install -r requirements.txt | |
ADD ./main.py . | |
ENTRYPOINT ["./main.py"] |
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 ubuntu:18.04 | |
RUN apt-get update && apt-get install -y curl git gnupg2 python docker.io && \ | |
curl https://bazel.build/bazel-release.pub.gpg | apt-key add - && \ | |
echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list && \ | |
apt-get update && apt-get install -y bazel | |
RUN /bin/echo -e '#!/bin/bash\n\ | |
set -euo pipefail\n\ | |
git clone http://code.hackerspace.pl/hscloud\n\ |
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
[package] | |
name = "publicsuffixtest" | |
version = "0.1.0" | |
authors = ["Jacek Wielemborek <d33tah@gmail.com>"] | |
[[bin]] | |
name = "publicsuffixtest" | |
path = "main.rs" | |
[dependencies] |