Skip to content

Instantly share code, notes, and snippets.

@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
--------------------------------------------