Skip to content

Instantly share code, notes, and snippets.

K.-Michael Aye michaelaye

  • LASP
  • Boulder, CO, United States
Block or report user

Report or block michaelaye

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
@sklam
sklam / raytracing.py
Last active Feb 1, 2019 — forked from rossant/raytracing.py
Numba optimized raytracing. From 23seconds to 9seconds.
View raytracing.py
from __future__ import print_function, division
from timeit import default_timer as timer
import numpy as np
import matplotlib.pyplot as plt
from numba import njit
w = 400
h = 300
@glass5er
glass5er / pptximage.py
Last active Nov 27, 2019
add an image in every Powerpoint slide using python-pptx
View pptximage.py
##
## Copy & Paste Tool for images to PowerPoint(.pptx)
##
import pptx
import pptx.util
import glob
import scipy.misc
OUTPUT_TAG = "MY_TAG"
View raytracing.py
import numpy as np
import matplotlib.pyplot as plt
w = 400
h = 300
from numba import autojit
@autojit
def normalize(x):
View README.md

#LaTeX in IPython Notebook

With this extension you can use LaTeX-style references within IPython (Notebook) while still using markdown for formatting.

Required:

  • ipython-dev
  • biblio-py
  • markdown
@hugorodgerbrown
hugorodgerbrown / md_to_rst.sh
Last active Oct 28, 2019
Shell script for converting a batch of *.md files into *.rst using pandoc.
View md_to_rst.sh
# This script was created to convert a directory full
# of markdown files into rst equivalents. It uses
# pandoc to do the conversion.
#
# 1. Install pandoc from http://johnmacfarlane.net/pandoc/
# 2. Copy this script into the directory containing the .md files
# 3. Ensure that the script has execute permissions
# 4. Run the script
#
# By default this will keep the original .md file
@Jim-Holmstroem
Jim-Holmstroem / gist:3705378
Created Sep 12, 2012
Highlight a span on a timeseries plot using pandas and matplotlib
View gist:3705378
def render_split(time, color, offset = -4*pd.datetools.Minute(15)):
if(color is not None):
pl.gca().axvspan(
time + offset,
time + pd.datetools.Minute(15) + offset,
facecolor = pl.cm.Paired( float(color % 12)/12 ),
linewidth = 0,
alpha = 1.0,
)
@jgarber
jgarber / private.xml
Created Aug 28, 2012
KeyRemap4MacBook setup to pair program with one Dvorak - Qwerty ⌘ typist and one Qwerty typist
View private.xml
<?xml version="1.0"?>
<root>
<deviceproductdef>
<productname>APPLE_INTERNAL_KEYBOARD_TRACKPAD_0x024c</productname>
<productid>0x024c</productid>
</deviceproductdef>
<deviceproductdef>
<productname>APPLE_WIRELESS_KEYBOARD_0x22c</productname>
<productid>0x22c</productid>
</deviceproductdef>
@dvessel
dvessel / gist:1478685
Created Dec 14, 2011
TextMate 2 .tm_properties
View gist:1478685

This is all based on the [alpha release][1].

Properties

From the built-in help system:

For many settings TextMate will look for a .tm_properties file in the current folder and in any parent folders (up to the user’s home folder).

These are simple setting = value listings where the value is a format string in which other variables can be referenced.

@kogakure
kogakure / .gitignore
Created Jul 17, 2009
Git: .gitignore file for LaTeX projects
View .gitignore
*.aux
*.glo
*.idx
*.log
*.toc
*.ist
*.acn
*.acr
*.alg
*.bbl
You can’t perform that action at this time.