Skip to content

Instantly share code, notes, and snippets.

View michaelaye's full-sized avatar

Michael Aye michaelaye

View GitHub Profile
@michaelaye
michaelaye / pandas bug.ipynb
Created December 2, 2013 03:35
Pandas 0.13.0rc1 bug
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@michaelaye
michaelaye / non-monotonic.ipynb
Last active January 3, 2016 05:59
non-monotonic time range indexing error
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@michaelaye
michaelaye / gist:8450433
Created January 16, 2014 05:54
Find non-nominal time deltas
# df is a pandas DataFrame
ts = pd.TimeSeries(df.index)
tdiff = ts.diff()
print tdiff.value_counts()
128000000 27976
129000000 91
@michaelaye
michaelaye / printpath.py
Created March 11, 2014 04:00
print pretty path in a shell
#!/usr/bin/env python
import os
import pprint
path = os.environ['PATH']
path = path.split(':')
pprint.pprint(path)
2014-03-25 18:31:13.852 secd[331]: securityd_xpc_dictionary_handler Fantastical[426] copy_matching The operation couldn’t be completed. (OSStatus error -34018 - client has neither application-identifier nor keychain-access-groups entitlements)
2014-03-25 18:31:13.853 Fantastical[426]: SecOSStatusWith error:[-34018] The operation couldn’t be completed. (OSStatus error -34018 - Remote error : The operation couldn‚Äôt be completed. (OSStatus error -34018 - client has neither application-identifier nor keychain-access-groups entitlements))
2014-03-25 18:31:13.898 secd[331]: securityd_xpc_dictionary_handler Fantastical[426] copy_matching The operation couldn’t be completed. (OSStatus error -34018 - client has neither application-identifier nor keychain-access-groups entitlements)
2014-03-25 18:31:13.898 Fantastical[426]: SecOSStatusWith error:[-34018] The operation couldn’t be completed. (OSStatus error -34018 - Remote error : The operation couldn‚Äôt be completed. (OSStatus error -34018 - client has neither a
@michaelaye
michaelaye / 0_reuse_code.js
Created April 3, 2014 02:14
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@michaelaye
michaelaye / boolean_image.ipynb
Created April 10, 2014 03:10
skimage boolean image display problem
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@michaelaye
michaelaye / image_threshold.ipynb
Last active August 29, 2015 13:58
Shortest IPython image interactivity example
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@michaelaye
michaelaye / snippet.txt
Created April 28, 2014 21:28
brew pyqt upgrade failure
$ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew.git
HEAD: 5670a850470b7abe64533b21acb3d5d9752b8f3e
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.9.2-x86_64
Xcode: 5.1.1
CLT: 5.1.0.0.1.1396320587
@michaelaye
michaelaye / Verification run 1.rst
Created May 2, 2014 05:24
RST conversion problems

Verification run 1

This file describes the parameters for this production run of RDR2. ## Location /luna4/maye/rdr_out/verification ## Calibration settings * JPL radiance correction ON * Josh's noise fix ON * Standard way of determining offsets: 1. Mean value per spaceview 2. Each calibration block (either for thermal or visual) then determines an average of all participating spaceview averages (can be 2 or 3)