Skip to content

Instantly share code, notes, and snippets.

@cpdef
cpdef / pie_viewer.html
Created July 6, 2020 08:39
3d pie viewer
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<table>
<tr style="vertical-align:top">
<td>
<textarea id="input" name="input" rows="400" cols="100"></textarea>
</td>
@cpdef
cpdef / odd_even.py
Created November 25, 2019 20:56
odd-even test tensorflow
# what you need to run this:
# tensorflow 2.0.0
from __future__ import absolute_import, division, print_function, unicode_literals
# TensorFlow and tf.keras
import tensorflow as tf
from tensorflow import keras
# Helper libraries
import numpy as np
@cpdef
cpdef / server.py
Created April 4, 2018 22:26
SimpleHTTPServerSecureUpload.py3
#!/usr/bin/env python3
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
see: https://gist.github.com/UniIsland/3346170
EDIT by cpdef:
needs now an certificate
julian@horst ~/Dokumente/Programme/unknown-horizons $ mkdir install_dir
julian@horst ~/Dokumente/Programme/unknown-horizons $ cd fifechan
julian@horst ~/Dokumente/Programme/unknown-horizons/fifechan $ mkdir _build && cd _build
julian@horst ~/Dokumente/Programme/unknown-horizons/fifechan/_build $ cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/julian/Dokumente/Programme/unknown-horizons/install_dir ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done