Skip to content

Instantly share code, notes, and snippets.

View detrout's full-sized avatar

Diane Trout detrout

  • Caltech - Wold Lab
  • Los Angeles, CA
View GitHub Profile
{
"metadata": {
"name": "outdated"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@detrout
detrout / gist:5659536
Last active December 17, 2015 19:19
Index of KTP Telepathy Packages
@detrout
detrout / gist:10491949
Created April 11, 2014 18:52
How true is library VERSION.startswith(SONAME)
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@detrout
detrout / gist:4396dfae354b131f319d
Created June 10, 2014 21:13
check for starting amounts.
{
"metadata": {
"name": "",
"signature": "sha256:6a5b9dfb303e905036e3a15bfa0a3e0b41ad4bf9d5244673e6fdb3ba58c218ea"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
#!/bin/bash
# /etc/init.d/pumpio
### BEGIN INIT INFO
# Provides: pump.io
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts pump.io as a background daemon
@detrout
detrout / gist:d87b89289818d1cfa370
Created July 23, 2015 05:46
start poking gitter
def viewresp(response):
print(response.readLine())
def main():
from PyQt5 import QtCore
from PyQt5 import QtGui
from PyQt5 import QtNetwork
from PyQt5 import QtWidgets
app = QtWidgets.QApplication(sys.argv)
@detrout
detrout / org-protocol.desktop
Created November 3, 2016 06:06
Desktop file to use org-protocol with xdg-open AKA GNOME 3 / KDE Plasma 5 (Save to ~/.local/share/applications/org-protocol.desktop
[Desktop Entry]
Version=1.0
Name=org-protocol helper
Comment=helper to allow GNOME to open org-protocol: pseudo-urls
TryExec=/usr/bin/emacsclient
Exec=/usr/bin/emacsclient %u
NoDisplay=true
Icon=emacs24
Terminal=false
Type=Application
"""A quickly written scraper to extract data from temp-and-precip/climatological-rankings
requires: requests, lxml, and grequests to run
Look to pip or your package panager.
it's likely to take a while to run as it looks like it will require
about 200 million http requests.
It'd be really nice if sites would let you request more than one data point at a time.
Dask doesn't support the following argument(s).
* buf
* columns
* col_space
* header
* index
* na_rep
* formatters
* float_format
Dask doesn't support the following argument(s).
* buf
* columns
* col_space
* header
* index
* na_rep
* formatters
* float_format