Skip to content

Instantly share code, notes, and snippets.

heetbeet

Block or report user

Report or block heetbeet

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View emdw-restructure.md

Emdw code restructure

Johan du Preez and I are in the process of restructuring emdw with the following aims:

  1. easier integration with external libraries and projects, less reinventing the wheel
  2. more use of Boost (less reinventing the wheel) https://github.com/boostorg https://www.boost.org/
  3. moving our tests from PatrecII to Google Test https://github.com/google/googletest
  4. moving our linear algebra and matrix libraries from gLinear and PatrecII to xtensor https://github.com/QuantStack/xtensor
  5. removing gLinear and PatrecII as external libraries
  6. easier housekeeping and modularisation
  7. separating core components from work-in-progress
  8. support for clang and cling https://github.com/QuantStack/xeus-cling
@heetbeet
heetbeet / example.bat
Last active Aug 27, 2019
A Linux/Windows header to run a file (with .bat extension) as a Python script. Python must be in os path.
View example.bat
""" " 2>NULL & @echo off 2>/dev/null
:; /usr/bin/env python "$0" "${@}"; exit $?
@echo off & call python %0 %* & exit /b
"""
print('hello')
@heetbeet
heetbeet / inkscape-grabber.py
Created Aug 22, 2019
Download inkscape and all its dependancies into your current folder, and create a portable wrapper entry point.
View inkscape-grabber.py
import os
import subprocess
def sh(*params, strip=True):
p = subprocess.Popen(params,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
universal_newlines=True)
@heetbeet
heetbeet / put_this_in_ipynb_top.py
Last active Aug 18, 2019
A Jupyter header to convert the following code into a .py file.
View put_this_in_ipynb_top.py
import __main__ as main
if not hasattr(main, '__file__'):
jupyter_name = 'your-jupyter-filename'
import os
import subprocess
subprocess.call(['jupyter',
'nbconvert',
'--to',
'script',
@heetbeet
heetbeet / Untitled.ipynb
Last active Aug 20, 2019
Some functions to help with analysing cpp files.
View Untitled.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@heetbeet
heetbeet / fmin_wrapping.ipynb
Created Mar 13, 2019
Wrapping scipy optimize fmin for a bit more flexability
View fmin_wrapping.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.