Skip to content

Instantly share code, notes, and snippets.

Avatar

John Donovan GeoSpark

View GitHub Profile
@GeoSpark
GeoSpark / xkcd1930.gml
Created Dec 19, 2017
A GraphML representation of XKCD comic no. 1930, including alt-text. https://xkcd.com/1930/
View xkcd1930.gml
<?xml version='1.0' encoding='utf-8'?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">
<key attr.name="text" attr.type="string" for="node" id="d0" />
<graph edgedefault="directed">
<node id="1">
<data key="d0">Did you know that</data>
</node>
<node id="2">
<data key="d0">the</data>
</node>
@GeoSpark
GeoSpark / scpi_tcp.py
Created Mar 28, 2015
Python script to send commands to a Rigol scope (or any LXI/SCPI instrument) from first principles.
View scpi_tcp.py
from zeroconf import *
import socket
import time
import requests
from lxml import etree
"""
Basic steps for a Rigol DS1000Z-series scope
--------------------------------------------
@GeoSpark
GeoSpark / test.ipynb
Created May 12, 2014
Some graphs and stuff
View test.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@GeoSpark
GeoSpark / gist:8ad7d36e37af701f4f6a
Last active Aug 29, 2015
How to set a logarithmic vertical scale.
View gist:8ad7d36e37af701f4f6a
import pylab
fig = plt.figure(figsize=(10.0, 10.0), dpi=100)
ax = fig.add_subplot(2, 1, 1)
ax.set_yscale('log')
ax.hist(liv_data['price'], bins=100)
pylab.show()
You can’t perform that action at this time.