Skip to content

Instantly share code, notes, and snippets.

View ufechner7's full-sized avatar

Uwe Fechner ufechner7

View GitHub Profile
@ufechner7
ufechner7 / linalg_3.py
Created April 1, 2015 11:07
Fast linear algebra for 3D vectors using numba 0.17 or newer
# -*- coding: utf-8 -*-
"""
* This file is part of FreeKiteSim.
*
* FreeKiteSim -- A kite-power system power simulation software.
* Copyright (C) 2013 by Uwe Fechner, Delft University
* of Technology, The Netherlands. All rights reserved.
*
* FreeKiteSim is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@ufechner7
ufechner7 / julia.lang
Last active January 12, 2024 06:03
julia specification files for gedit / gnome
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of GtkSourceView
Authors: Waldir Pimenta
Copyright (C) 2013 Waldir Pimenta <[email protected]>
GtkSourceView is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@ufechner7
ufechner7 / sim_core_cpp.py
Created April 18, 2014 14:31
Example for using Numba classes
# -*- coding: utf-8 -*-
"""
Test and wrapper script for simulator core functions.
To recompile the C++ library type ! ./make.sh from the ipython console and restart
the ipython kernel.
"""
import os
import sys
path = os.path.dirname(os.path.realpath(__file__))
sys.path.append(path + '/..')