Skip to content

Instantly share code, notes, and snippets.

View neurodroid's full-sized avatar

Christoph Schmidt-Hieber neurodroid

View GitHub Profile
# (c) 2013 www.nerdenmeister.org
diff -ur ./Build/Resources/MacOSX/Info.plist.xml ./b/Build/Resources/MacOSX/Info.plist.xml
--- ./Build/Resources/MacOSX/Info.plist.xml 2012-02-07 10:36:48.000000000 +0000
+++ ./b/Build/Resources/MacOSX/Info.plist.xml 2014-04-20 22:20:31.000000000 +0100
@@ -38,6 +38,9 @@
<key>LSRequiresCarbon</key>
<true/>
+ <key>NSPrincipalClass</key>
+ <string>NSApplication</string>
@neurodroid
neurodroid / opennx-osx.patch
Last active April 9, 2017 20:36
Patch to build OpenNX (http://www.opennx.net/) with MacPorts on OS X 10.9. Still quite buggy, and the ancient keyboard issue isn't fixed. See http://www.nerdenmeister.org/2013/11/09/build-opennx-on-os-x-10-9-mavericks/
Index: opennx/AsyncProcess.cpp
===================================================================
--- opennx/AsyncProcess.cpp (revision 724)
+++ opennx/AsyncProcess.cpp (working copy)
@@ -208,7 +208,7 @@
wxOutputStream *os = GetOutputStream();
if (os) {
if (doLog)
- ::myLogTrace(MYTRACETAG, wxT("Sending: '%s'"), s.c_str());
+ ::myLogTrace(MYTRACETAG, wxT("Sending: '%s'"), s.wc_str());
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
PortSystem 1.0
name TrueCrypt
version 7.1a
revision 2
categories security
platforms darwin
@neurodroid
neurodroid / intan.py
Last active June 17, 2018 18:02
Reads Intan Technologies CLAMP data file generated by controller GUI.
"""
Reads Intan Technologies CLAMP data file generated by controller GUI.
Christoph Schmidt-Hieber
2016-11-05
Mostly a Python version of read_Intan_CLP_file.m from
http://www.intantech.com/files/Intan_CLAMP_software_compiled_v1_0.zip
as of 2016-11-05
@neurodroid
neurodroid / COVID19-test.py
Created April 28, 2020 19:13
COVID-19 testing in France (only "laboratoire de ville")
"""
Sources:
https://www.data.gouv.fr/fr/datasets/donnees-relatives-aux-tests-de-depistage-de-covid-19-realises-en-laboratoire-de-ville/
"""
import pandas as pd
import matplotlib.pyplot as plt
covid_test_url = "https://www.data.gouv.fr/fr/datasets/r/b4ea7b4b-b7d1-4885-a099-71852291ff20"
covid_test_csv = pd.read_csv((covid_test_url), sep=";", index_col=1, parse_dates=True,)