Skip to content

Instantly share code, notes, and snippets.

Avatar

Julian 4goettma

  • Hamburg, Germany
View GitHub Profile
@4goettma
4goettma / importHelper.py
Created Jun 9, 2019
small python module to simplify importing modules, v0.2
View importHelper.py
"""
#!/usr/bin/env python3
import importHelper
importHelper.importAllOfThese(["datetime", "math"])
importHelper.importOneOfThese(["clipboard", "pyperclip"], "clip")
print(math.cos(1))
print(datetime.datetime.now().isoformat())
print(clip.paste())
View steine.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Dockerfile
# docker run --volume=$(pwd):/workdir -i -t arch-nsfw python /nsfw/main.py /workdir/test_image.jpg
FROM base/archlinux
RUN pacman -Sy
RUN pacman -S --noconfirm python-pip wget
ADD packages_aur.tar /pkg
RUN yes y | pacman -S --noconfirm openblas
WORKDIR pkg
RUN pacman -U --noconfirm python-leveldb-0.20-1-x86_64.pkg.tar.xz python-pydotplus-2.0.2-1-any.pkg.tar.xz python-pywavelets-1.0.1-1-x86_64.pkg.tar.xz python-scikit-image-0.14.1-2-x86_64.pkg.tar.xz python2-pydotplus-2.0.2-1-any.pkg.tar.xz python2-pywavelets-1.0.1-1-x86_64.pkg.tar.xz python2-scikit-image-0.14.1-2-x86_64.pkg.tar.xz caffe-1.0-14-x86_64.pkg.tar.xz
RUN python3 -m pip install nsfw
ADD main.py /nsfw/main.py