Skip to content

Instantly share code, notes, and snippets.

View QuLogic's full-sized avatar

Elliott Sales de Andrade QuLogic

View GitHub Profile
@QuLogic
QuLogic / Direct Access to Seismological Data using Python and ObsPy.ipynb
Last active August 29, 2015 14:21
Direct Access to Seismological Data using Python and ObsPy
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@QuLogic
QuLogic / issue579.py
Last active August 29, 2015 14:16
Cartopy issue 579 test
from __future__ import (absolute_import, division, print_function)
import sys
import numpy as np
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
import cartopy.feature as cfeature
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@QuLogic
QuLogic / mpl_catchoutput.py
Last active August 29, 2015 14:13
mpl CatchOutput bugs
#!/usr/bin/env python
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import matplotlib
matplotlib.use("agg")
from contextlib import contextmanager
import tempfile
import sys
@QuLogic
QuLogic / gist:91396688795fc43b168a
Created January 18, 2015 23:28
mpl bt for obspy
(gdb) bt full
#0 0x00007ffff6c908c7 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
resultvar = 0
pid = 24055
selftid = 24055
#1 0x00007ffff6c9252a in __GI_abort () at abort.c:89
save_stage = 2
act = {__sigaction_handler = {sa_handler = 0x7ffff7014700 <_IO_2_1_stderr_>, sa_sigaction = 0x7ffff7014700 <_IO_2_1_stderr_>},
sa_mask = {__val = {140737353826304, 48, 2, 140737337444096, 2, 140737070906308, 0, 20035248, 140737337444096, 140737073193880,
140737337444576, 20035248, 11386, 0, 16928400, 140737351966300}}, sa_flags = -446320048,
@QuLogic
QuLogic / msn-ab-allowed.xml
Created November 14, 2014 09:11
MSN AB contact examples
<Contact>
<contactId>...GUID...</contactId>
<contactInfo>
<annotations>
<Annotation>
<Name>Live.AB.UserTileHash</Name>
<Value>Base 64 of hash</Value>
</Annotation>
</annotations>
<groupIds>
<NetworkInfoList>
<NetworkInfo>
<DomainId>1</DomainId>
<SourceId>WL</SourceId>
<RelationshipType>3</RelationshipType>
<RelationshipState>2</RelationshipState>
<RelationshipStateDate>2010...</RelationshipStateDate>
<RelationshipRole>0</RelationshipRole>
<NDRCount>0</NDRCount>
<InviterCID>0</InviterCID>