Skip to content

Instantly share code, notes, and snippets.

View aitatanit's full-sized avatar

Jimmy Touma aitatanit

View GitHub Profile
@aitatanit
aitatanit / crank-nicolson.tex
Created January 22, 2017 06:37
Finite Difference Method - Crank-Nicolson Stencil in TikZ
% Author: JE Touma (aitatanit@gmail.com)
% Finite difference method - crank-nicolson stencil
\documentclass{article}
\usepackage{tikz}
\usepackage{siunitx}
\usetikzlibrary{calc,decorations.pathmorphing,patterns}
\begin{document}
@aitatanit
aitatanit / fdm_explicit.tex
Created January 22, 2017 06:35
Finite Difference Method - explicit stencil in TikZ
% Author: JE Touma (aitatanit@gmail.com)
% Finite difference method - explicit stencil
\documentclass{article}
\usepackage{tikz}
\usepackage{siunitx}
\usetikzlibrary{calc,decorations.pathmorphing,patterns}
\begin{document}
@aitatanit
aitatanit / fdm_implicit.tex
Created January 22, 2017 06:34
Finite Difference Method - Implicit Stencil in TikZ
% Author: JE Touma (aitatanit@gmail.com)
% Finite difference method - implicit stencil
\documentclass{article}
\usepackage{tikz}
\usepackage{siunitx}
\usetikzlibrary{calc,decorations.pathmorphing,patterns}
\begin{document}
@aitatanit
aitatanit / EMWave-z-direction.tex
Created November 1, 2016 16:38
EM Wave propagating in the Z direction
% EM Wave propagating in the Z-direction
% Author: Jimmy Touma
% adapted from: Cyril Langlois (http://www.texample.net/tikz/examples/polarizing-microscope/)
\documentclass[11pt]{article}
\usepackage{tikz}
\usetikzlibrary{arrows}
@aitatanit
aitatanit / thin-fim-multiple-reflections.tex
Created November 1, 2016 05:48
Multiple reflections from thin film
% Multiple reflections in thin film
% Author: Jimmy Touma
% adapted from: Jimi Oke (http://www.texample.net/tikz/examples/refraction/)
\documentclass[11pt]{article}
\usepackage{tikz}
\usetikzlibrary{%
@aitatanit
aitatanit / oblique-incidence-TM-Mode.tex
Last active October 31, 2016 11:47
TM mode (P-polarization) of EM wave at oblique incidence at an interface between two media
% Oblique Incidence - TM Mode (P-Polarization)
% Author: Jimmy Touma (10/27/2016)
%
% Adapted from:
% Edgar Fuentes (Club de LaTeX UC member)
% http://www.texample.net/tikz/examples/oblique-incidence/
\documentclass{article}
@aitatanit
aitatanit / oblique-incidence-TE-Mode.tex
Last active October 31, 2016 11:46
TE mode (S-polarization) of EM wave at oblique incidence at an interface between two media
% Oblique Incidence - TE Mode (S-Polarization)
% Author: Jimmy Touma (10/27/2016)
%
% Adapted from:
% Edgar Fuentes (Club de LaTeX UC member)
% http://www.texample.net/tikz/examples/oblique-incidence/
\documentclass{article}
"""
Given an arbitrarily nested dictionary, create a PyTables Table
Populate a table row given the contents of a dictionary
"""
import tables
import numpy as np
import sys
"""
Given an arbitrarily nested dictionary, create a PyTables Table
Populate a table row given the contents of a dictionary
"""
import tables
import numpy as np
import sys
all: test libtest.so testmodule
libtest.so: libtest.o
$(CC) -shared -o $@ $< -lc
test: test_main.c libtest.o
$(CC) -o $@ $?
testmodule: testmodule.c
python setup.py build