Skip to content

Instantly share code, notes, and snippets.

View pie_viewer.html
<!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 Nov 25, 2019
odd-even test tensorflow
View odd_even.py
# 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 Apr 4, 2018
SimpleHTTPServerSecureUpload.py3
View server.py
#!/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
View unknown-horizons build_error log
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