Skip to content

Instantly share code, notes, and snippets.

View tenko's full-sized avatar

Runar Tenfjord tenko

View GitHub Profile
@tenko
tenko / setupext.py
Last active August 29, 2015 14:06
matplotlib fix for setupext.py
--- old/setupext.py 2014-08-26 04:24:27.000000000 +0200
+++ new/setupext.py 2014-09-19 11:33:06.714884200 +0200
@@ -15,7 +15,7 @@
PY3 = (sys.version_info[0] >= 3)
-
+MSYS = "MSYSTEM" in os.environ
try:
@tenko
tenko / setup.py
Created September 18, 2014 21:33
matplotlib fix for setup.py
--- old/setup.py 2014-08-26 04:24:27.000000000 +0200
+++ new/setup.py 2014-09-18 23:28:32.597091000 +0200
@@ -97,7 +97,7 @@
setupext.BackendGtk3Agg(),
setupext.BackendGtk3Cairo(),
setupext.BackendGtkAgg(),
- setupext.BackendTkAgg(),
+ #setupext.BackendTkAgg(),
setupext.BackendWxAgg(),
setupext.BackendGtk(),
@tenko
tenko / PKGBUILD
Created October 24, 2014 13:02
OCE PKGBUILD
# Contributor: Runar Tenfjord <runar.tenfjord@gmail.com>
_realname=oce
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.16
pkgrel=1
pkgdesc="Open CASCADE Technology, 3D modeling & numerical simulation"
url="http://github.com/tpaviot/oce"
arch=('i686' 'x86_64')
license=('Custom')
depends=("${MINGW_PACKAGE_PREFIX}-ftgl")
@tenko
tenko / PKGBUILD
Created October 24, 2014 13:20
GMSH PKGBUILD
# Contributor: Runar Tenfjord <runar.tenfjord@gmail.com>
_realname=gmsh
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=2.8.5
pkgrel=1
pkgdesc="An automatic 3D finite element mesh generator with pre and post-processing facilities."
arch=('i686' 'x86_64')
url="http://www.geuz.org/gmsh/"
license=('custom')
depends=(
@tenko
tenko / duckdb.pyx
Last active February 27, 2020 20:54
# -*- coding: utf-8 -*-
cimport cython
from cython cimport view
from cpython.buffer cimport PyObject_CheckBuffer, PyObject_GetBuffer, PyBuffer_Release
from cpython.buffer cimport PyBUF_FORMAT, PyBUF_INDIRECT
from cpython.ref cimport PyObject, Py_INCREF, Py_DECREF
from libcpp cimport bool as cbool
from libc.stdint cimport int8_t, int16_t, int32_t, uint64_t, int64_t
from libc.stdlib cimport malloc, free
module Sqlite
import SqliteLib
const
OPEN_READONLY* = SqliteLib.OPEN_READONLY
OPEN_READWRITE* = SqliteLib.OPEN_READWRITE
OPEN_CREATE* = SqliteLib.OPEN_CREATE
OPEN_URI* = SqliteLib.OPEN_URI
OPEN_MEMORY* = SqliteLib.OPEN_MEMORY