Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en">
<style>
.parent {
display: grid;
grid-template-columns: 2fr 1fr;
grid-template-rows: repeat(2, 1fr);
grid-column-gap: 0px;
grid-row-gap: 0px;
<!DOCTYPE html>
<html lang="en">
<body>
<table boder="0" width="100%">
<tr>
<td style="vertical-align: top;">
<iframe src="https://www.meteoblue.com/de/wetter/woche/k%C3%B6ln_deutschland_2886242#meteogram" width="100%" height="500" scrolling="no"></iframe>
<iframe src="https://www.meteoblue.com/de/wetter/woche/k%C3%B6ln_deutschland_2886242" width="100%" height="1000"></iframe>
</td>
<!DOCTYPE html>
<html lang="en">
<body>
<table boder="0" width="100%">
<tr>
<td style="vertical-align: top;">
<iframe src="https://www.meteoblue.com/de/wetter/woche/k%C3%B6ln_deutschland_2886242#meteogram" width="100%" height="500" scrolling="no"></iframe>
<iframe src="https://www.meteoblue.com/de/wetter/woche/k%C3%B6ln_deutschland_2886242" width="100%" height="1000" scrolling="no"></iframe>
</td>
import itertools
from collections import namedtuple
import numpy as np
import scipy.sparse.linalg
def step():
W = 0
'''
div E = rho / eta0
div B = 0
Loading: ./model_acc_0.00_ppl_624.87_e2.pt
/home/manuel/tmp/x/OpenNMT-py/virtenv/lib/python3.5/site-packages/torch/nn/modules/rnn.py:38: UserWarning: dropout option adds dropout after all but last recurrent layer, so non-zero dropout expects num_layers greater than 1, but got dropout=0.3 and num_layers=1
"num_layers={}".format(dropout, num_layers))
Loading model parameters.
ReinforcedModel(
(encoder): RNNEncoder(
(embeddings): Embeddings(
(make_embedding): Sequential(
(emb_luts): Elementwise(
(0): Embedding(32567, 500, padding_idx=1)
333g flour
233ml water
13g olive oil
7g salt
3g dried yeast
@manuels
manuels / main.rs
Created May 27, 2018 10:16
Rust bug
fn main() {
loop {
let beacon = {
match true {
false => 4,
true => break,
}
};
drop(&beacon);
}
#![feature(proc_macro, generators, pin)]
pub extern crate std as stdx;
pub extern crate futures_async_runtime;
extern crate tokio;
extern crate futures as futures1;
extern crate futures_core;
extern crate futures_compat;
extern crate futures_executor;
extern crate futures_macro_async;
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'ubuntu/wily64' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'ubuntu/wily64'
default: URL: https://atlas.hashicorp.com/ubuntu/wily64
==> default: Adding box 'ubuntu/wily64' (v20160715.0.0) for provider: virtualbox
default: Downloading: https://atlas.hashicorp.com/ubuntu/boxes/wily64/versions/20160715.0.0/providers/virtualbox.box
==> default: Successfully added box 'ubuntu/wily64' (v20160715.0.0) for 'virtualbox'!
==> default: Importing base box 'ubuntu/wily64'...
@manuels
manuels / FitPoints.py
Created September 2, 2015 09:25
Takes a number of points which lie on the surface of a 3d ellipsoid and calculates center and radii of the ellipsoid
#!/usr/bin/env python
# migrated from java code:
# https://github.com/KEOpenSource/EllipsoidFit/blob/master/EllipsoidFit/src/ellipsoidFit/FitPoints.java
import numpy as np
from numpy.linalg import svd, pinv, eig
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import pyplot as plt
def solveSystem(points):