Skip to content

Instantly share code, notes, and snippets.

View 1tgr's full-sized avatar
💬
Loading...

Tim Robinson 1tgr

💬
Loading...
View GitHub Profile
@1tgr
1tgr / it.fsx
Created September 18, 2012 10:18
Inspect the last value evaluated in FSI
// Run this as: fsi --use:it.fsx --quiet
open System
open System.Reflection
open Microsoft.FSharp.Compiler.Interactive
let (getSavedItType : unit -> Type, getSavedIt : unit -> obj) =
let t = typeof<IEventLoop>
let t = t.Assembly.GetType(t.Namespace + ".RuntimeHelpers", true)
let bf = BindingFlags.Static ||| BindingFlags.NonPublic
let itTypeMethod = t.GetMethod(name = "GetSavedItType", bindingAttr = bf)
@aspender
aspender / ticket_watch.pl
Created June 23, 2012 21:39
Perl script to check if tickets for a specific London 2012 Olympics session are currently available
#!/usr/bin/perl -w
use Getopt::Std;
# Define the address the alerts should come from
$monitor_email = "monitor@monitor.com";
$monitor_url = "http://www.tickets.london2012.com/browse?form=session&tab=oly&sessionCode=";
# Define global variables