Skip to content

Instantly share code, notes, and snippets.

View jlaura's full-sized avatar
🏠
Working from home

Jay Laura jlaura

🏠
Working from home
  • USGS Astrogeology
  • Flagstaff AZ
  • 01:10 (UTC -07:00)
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import json
from twython import TwythonStreamer
#Fill these in with the values Twitter give you when you register as a developer
APP_KEY = ''
APP_SECRET = ''
consumer_key = ''
consumer_secret = ''
access_token = ''
import math
"""
This is not working...
"""
def add(x,y):
return x-y
@jlaura
jlaura / planefitting.ipynb
Last active January 17, 2023 15:29
Plane Fitting LTSQ
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jlaura
jlaura / error.log
Created March 13, 2015 17:29
Sphinx 1.3 Error Log
# Sphinx version: 1.3
# Python version: 2.7.9 (CPython)
# Docutils version: 0.12 release
# Jinja2 version: 2.7.3
# Last messages:
# reading sources... [ 19%] library/cg/index
# reading sources... [ 20%] library/cg/kdtree
# reading sources... [ 20%] library/cg/locators
# reading sources... [ 21%] library/cg/rtree
# reading sources... [ 22%] library/cg/shapes
@jlaura
jlaura / gist:583defa279c340f12181
Created January 21, 2015 15:27
VisPy Context Menu Items
import sys
import numpy as np
import sip
sip.setapi('QString', 2)
from PyQt4 import QtGui, QtCore
from vispy import app, scene
from vispy.scene import visuals
from vispy.geometry import generation as gen, create_sphere
@jlaura
jlaura / gist:cb4d7af59e5e9a2824a4
Created January 20, 2015 22:24
Vispy selection example
import sys
import numpy as np
from PySide import QtGui, QtCore
from vispy import app, scene
from vispy.scene import visuals
from vispy.geometry import generation as gen, create_sphere
app.use_app('pyside')
@jlaura
jlaura / gist:634b708101adef1a9258
Created January 14, 2015 14:38
PySAL 1.9 Dev. Documentation parsing issues
pysal.spatial_dynamics.interaction.SpaceTimeEvents: Misalignment / Error in arguments.
<function rose at 0x7fe3b5c9a668>: Misalignment / Error in arguments.
<function pseudop at 0x7fe3b5c9a140>: No documentation.
<function shuffle_matrix at 0x7fe3b5c9a8c0>: Misalignment / Error in arguments.
pysal.spatial_dynamics.markov.Spatial_Markov: Misalignment / Error in arguments.
<function homogeneity at 0x7fe3b5c9a0c8>: Misalignment / Error in arguments.
pysal.spatial_dynamics.markov.Homogeneity_Results: Misalignment / Error in arguments.
pysal.core.util.shapefile.MultiPoint: No documentation.
pysal.core.util.shapefile.NullShape: No documentation.
pysal.core.util.shapefile.shp_file: Misalignment / Error in arguments.
@jlaura
jlaura / pysalmap.json
Created September 5, 2014 20:10
PySAL JSON
{"name": "PySAL", "children": [{"name": "spatial_dynamics", "children": [{"name": "Tau", "children": []}, {"name": "ergodic", "children": [{"name": "steady_state", "children": []}, {"name": "var_fmpt", "children": []}, {"name": "fmpt", "children": []}]}, {"name": "interaction", "children": [{"name": "modified_knox", "children": []}, {"name": "mantel", "children": []}, {"name": "SpaceTimeEvents", "children": []}, {"name": "jacquez", "children": []}, {"name": "date", "children": []}, {"name": "knox", "children": []}]}, {"name": "mantel", "children": []}, {"name": "directional", "children": [{"name": "rose", "children": []}]}, {"name": "util", "children": [{"name": "get_lower", "children": []}, {"name": "shuffle_matrix", "children": []}]}, {"name": "rose", "children": []}, {"name": "Spatial_Markov", "children": []}, {"name": "rank", "children": [{"name": "SpatialTau", "children": []}, {"name": "Tau", "children": []}, {"name": "rankdata", "children": []}, {"name": "pseudop", "children": []}, {"name": "Theta", "ch