Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jarvist's full-sized avatar

Jarvist Moore Frost jarvist

View GitHub Profile
@jarvist
jarvist / Vodna Sled 2010 - Interim Report
Created August 31, 2010 17:14
Vodna Sled 2010 - Markdown - Reports & ETc
#Vodna Sled 2010
##Interim Report - Aug 2010
<img align=right src="2010_vrtnarija_below_500_new_passage.png"
width=703 height=446 alt="Vrtnarija below -500m, new cave discovered
in 2010 coloured in Red. Cave presented in Elevation on a South-North
projection.">
/* (gl) Video Feedback by Jarvist Moore Frost
This code written 2004-2010.
GLUT skeleton found at http://stackoverflow.com/questions/503816/linux-fastest-way-to-draw
*/
#include <GL/glut.h>
#include <GL/glut.h>
#include <stdio.h>
#include <math.h>
#include <limits.h>
#Vodna Sled 2010: Underground Camp Logistics
The Vodna Sled 2010 4-berth underground camp was extremely comfortable and provided an excellent base for extended deep cave exploration. As there seems to be little information written about setting up alpine caving camps, we describe in this document an overview of the equipments used, and resulting performance.
##Cave Conditions
Vrtnarija is a typical deep alpine cave system. The temperature measured at camp varies between 1 and 2 degrees centigrade. Camp X-Ray has a fairly considerably draft which flows from the (wet) Zimmer pitch. We would estimate the relatively humidity to be above 80%, and note that non-sealed paper becomes damp overnight.
##Sleeping Arrangements
for i in *.jpg
do
id=` identify "${i}" | awk '{print $3}' | sed s/x/\ / `
x=` echo $id | cut -f1 -d\ `
y=` echo $id | cut -f2 -d\ `
echo $i X: $x Y: $y
if (( $x > 1024 ))
then
# gpsbabel XCSV style file
#
# Format: DeLorme SA 9.0 CSV
# Author: Alex Mottram
# Date: 12/09/2002
#
# gpsbabel -T -i garmin -f /dev/ttyUSB0 -F testlog.dat -o xcsv,style=waypoint_data_log.style
#
DESCRIPTION Comma separated values
@jarvist
jarvist / lfgss.py
Created March 18, 2011 10:28
Beautiful Soup / Python code to monitor LFGSS message board and spawn a chrome tab on new adverts
from BeautifulSoup import BeautifulSoup
import urllib2
import re
import time
import sys
import os
user_agent = 'Mozilla/5 (Solaris 10) Gecko'
headers = { 'User-Agent' : user_agent }
@jarvist
jarvist / tn.py
Created May 19, 2011 10:07
Calculate Additions of Non Repeating Triangular numbers:
tn=1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 0, 0
soln={}
for i in tn[:]:
for j in tn[tn.index(i)+1:]:
for k in tn[tn.index(j)+1:]:
for l in tn[tn.index(k)+1:]:
print i,j,k,l
soln[i+j+k+l]=i,j,k,l
@jarvist
jarvist / twitter_archive.py
Created August 29, 2011 17:15
Python script with Beautiful soup to rip Tweets from twitter account, prints as HTML for inclusion in webpage with Date/Time stamp
#!/usr/bin/python
#Original from here: http://code.activestate.com/recipes/576594/
#rips Tweets from twitter account, prints as HTML for inclusion in webpage with Date/Time stamp
import time
from urllib2 import urlopen
from BeautifulSoup import BeautifulSoup
# Replace USERNAME with your twitter username
url = u'http://twitter.com/USERNAME?page=%s'
@jarvist
jarvist / 3d2text_colour.c
Created September 2, 2011 00:54
Builds against Survex 1.0.39 to convert .3d cave survey files --> CGO Pymol graphics objects
/*
* 3d2text.c
*
* changes .3d files to ascii text
*
* Copyright (C) 2001, Clewin Griffith.
* Pymol CGO output additions (C) 2011, Jarvist Moore Frost.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@jarvist
jarvist / raman.sh
Created January 1, 2012 15:19
Tiny awk-driven shell script to extract Raman frequencies + Activity from a Gaussian (quantum chemical program) .log output file.
#!/usr/bin/awk -f
BEGIN{j=0
a=0}
{
if (($1=="Frequencies"))
{
freq[j]=$3
j++
freq[j]=$4
j++