Skip to content

Instantly share code, notes, and snippets.

View scharlton2's full-sized avatar

Charlton, Scott R. scharlton2

View GitHub Profile
@mattbierbaum
mattbierbaum / setup.py
Created September 2, 2011 20:39
Simple SWIG/numpy example
from distutils.core import setup, Extension
import numpy
import os
os.environ['CC'] = 'g++';
setup(name='matt_simple_test', version='1.0', ext_modules =[Extension('_simple',
['simple.cc', 'simple.i'], include_dirs = [numpy.get_include(),'.'])])
@h09shais
h09shais / Note.md
Created October 8, 2019 12:01
Tip to avoid dirty commits

Tip to avoid "dirty commits" When you create a new branch, instead of doing

git checkout develop
git checkout -b [branch-name]

do

git checkout -b [branch-name] origin/develop