This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket/base | |
(require plot) | |
; gearing specifications | |
(define crings (list 36 48)) | |
(define cassette (list 12 13 14 15 17 19 21 23 25)) | |
; wheel circumference in km | |
(define wheelc (/ 2190 1e6)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Connection=wireless | |
Interface=your-interface-name | |
Security=wpa-configsection | |
Description="eduroam" | |
IP=dhcp | |
TimeoutWPA=10 | |
ESSID=eduroam | |
WPAConfigSection=( | |
'ssid="eduroam"' | |
'proto=WPA2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* lmst.c | |
* | |
* Compute and return the LMST, based on the current time and an input | |
* longitude. | |
* | |
* Equations from: | |
* https://www.cv.nrao.edu/~rfisher/Ephemerides/times.html | |
* | |
* George C. Privon | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# sismologia.py | |
# | |
# Scrape the sismologia.cl website list of most recent earthquakes > 3.0 | |
# (http://www.sismologia.cl/links/ultimos_sismos.html) and localize them. | |
# | |
# Copyright (C) 2015 George C. Privon | |
# | |
# This program is free software: you can redistribute it and/or modify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# | |
# Script to load a list of websites into firefox. | |
# | |
# Loads config file in: ~/.mozilla/daily_websites | |
# Format is: | |
# URL ------- (where the dashes are replaced by 1 or 0 if the page is to be | |
# loaded on that day of the week, [starting with Monday]) | |
# Example, if you want to only load slashdot.org on Mon, Wed, Fri: | |
# http://slashdot.org 1010100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Load the daily USGS atom feed and see if there are any earthquakes within | |
# a specified distance of a specified location | |
import feedparser | |
import argparse | |
import math | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# Usage: | |
# twitter_t_histogram.py file1.xml [file2.xml] | |
# | |
# first file required, second file optional (will overplot and give legends) | |
# Output files are file1-min.png, file1-sec.png | |
from xml.dom import minidom | |
from datetime import datetime |