Skip to content

Instantly share code, notes, and snippets.

Paweł Biernat pwl

  • Kraków
View GitHub Profile
View gist:9bf9b660d7bd6b79b95570ead03b0c93
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/opt/conda/lib/python3.5/site-packages/theano/gof/op.py in __call__(self, *inputs, **kwargs)
624 try:
--> 625 storage_map[ins] = [self._get_test_value(ins)]
626 compute_map[ins] = [True]
/opt/conda/lib/python3.5/site-packages/theano/gof/op.py in _get_test_value(cls, v)
580 detailed_err_msg = utils.get_variable_trace_string(v)
--> 581 raise AttributeError('%s has no test value %s' % (v, detailed_err_msg))
@pwl
pwl / openvpn-log
Created May 17, 2017
Logs from openvpn
View openvpn-log
[root@vps411446 ~]# docker run -v $OVPN_DATA:/etc/openvpn -p 1194:1194/udp --privileged -e DEBUG=1 kylemanna/openvpn
+ set -e
+ cd /etc/openvpn
+ USER_ARGS=("${@}")
+ ARGS=()
+ addArg --config /etc/openvpn/openvpn.conf
+ local arg=--config
+ '[' 2 -ge 1 ']'
+ local val=/etc/openvpn/openvpn.conf
+ hasArg --config
@pwl
pwl / probabilistic_pca.ipynb
Created Mar 3, 2017
Probabilistic PCA with ARD
View probabilistic_pca.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:186431cd2e31e52c8ff0

Problem:

F(t,y,dy)=dy+y

Scalar equation

  • Noniterative
@pwl
pwl / gist:5353171
Last active Dec 16, 2015
Zbieżność pochodnej z funkcji analitycznej i nieanalitycznej w przedostatnim punkcie siatki. Punkty oznaczają błąd bezwzględny (niebieski) i względny (fioletowy).
View gist:5353171
$MaxExtraPrecision = 1000;
der[f_, k_, rk_, h_] :=
NDSolve`FiniteDifferenceDerivative[Derivative[k], h Range[0, 100],
f /@ (h Range[0, 100]), DifferenceOrder -> rk];
abserr[f_, k_, rk_] :=
Abs[der[f, k, rk, #][[2]] -
Derivative[k][f][#]] & /@ (2^-Range[1, 30]);
relerr[f_, k_, rk_] :=
abserr[f, k, rk]/Abs@(Derivative[k][f] /@ (2^-Range[1, 30]));
graph[{f1_, f2_}, k_, rk_] :=
@pwl
pwl / Makefile
Created Aug 13, 2012
Lua script embedding in fortran
View Makefile
default: script_embed
./script_embed
script_embed: script_embed.f90 script_data.o
$(FC) -o $@ $^
script_data.o: script_data.s script.lua
gcc -c -o $@ $<
clean:
@pwl
pwl / Makefile
Created Aug 13, 2012
Lua script embedding in fortran
View Makefile
default: script_embed
./script_embed
script_embed: script_embed.f90 script_data.o
gfortran -o $@ $^
script_data.o: script_data.s script.lua
gcc -c -o $@ $<
@pwl
pwl / PKGBUILD
Created May 26, 2012
PKGBUILD for camlimages
View PKGBUILD
pkgname=camlimages
pkgver=4.0.1
pkgrel=1
pkgdesc="Objective Caml image processing library"
arch=(i686 x86_64)
url="http://gallium.inria.fr/camlimages"
license=('GPL2')
depends=('libpng' 'libtiff' 'libxpm' 'libungif' 'freetype2' 'libjpeg')
makedepends=('ocaml' 'omake')
md5sums=('e2e1c7360f6a13fa1c5bbc51e7d05444')
View gist:2501359
program test_function_registry
use class_func_registry
use flu_module
use class_platonic
use platonic_from_lua_module
use flu_get_module
use class_function
use class_boundary
use boundary_box_module
use class_boundary_dirichlet
View gist:2172959
(setq require-final-newline t)
(add-hook 'before-save-hook 'delete-trailing-whitespace)
You can’t perform that action at this time.