Skip to content

Instantly share code, notes, and snippets.

View ryandvmartin's full-sized avatar

Ryan Martin ryandvmartin

View GitHub Profile
@ryandvmartin
ryandvmartin / conda-env-here.cmd
Last active May 12, 2021 15:59
A utility to add right-click Jupyter and Anaconda Prompt keys.
::
:: Quick function to add jupyter and anaconda keys to the currently activate environment
:: Author: Ryan Martin
:: Date: April 30, 2019
:: VERSION 1.000
:: - initial release
:: VERSION 2.000
:: - added ability to have multiple environments defined in right click keys
::
@ryandvmartin
ryandvmartin / cloudSettings
Last active November 25, 2019 23:02
RM's VSCode Dev Setup
{"lastUpload":"2019-11-25T23:02:26.476Z","extensionVersion":"v3.4.3"}
@ryandvmartin
ryandvmartin / c_interop.f90
Last active September 28, 2021 03:05
Fortran Character Arrays and Python Ctypes .... the pain is real.
! testing in the ipython notebook with the fortran code in one cell:
! %%file test.f90
! and with the build call in the following cell:
! `!gfortran -shared test.f90 -o test.dll`
! note: some useful stuff found here: https://stackoverflow.com/a/13880611/5545005
module c_interop
use iso_c_binding
implicit none
integer, parameter :: STRLEN = 64
contains