Skip to content

Instantly share code, notes, and snippets.

@troykershaw
troykershaw / AppDelegate.fs
Created March 18, 2015 03:50
AppDelegate.fs for Mitch
namespace FormsTest
open System
open MonoTouch.UIKit
open MonoTouch.Foundation
open Xamarin.Forms
open System.Threading.Tasks
open Controls
@troykershaw
troykershaw / XmlTypeProviderIssue.fs
Created September 6, 2013 05:02
A reproduction of the XML Type Provider issue raised on Stack Overflow (see url at end). Essentially, DomainTypes appear in IntelliSense, but the compiler gives an **Error FS0039: The type 'Ul' is not defined (FS0039)** error, and the same thing for 'Li'. http://stackoverflow.com/questions/18453911/type-provider-not-recognized-when-building-project
module XmlTypeProviderIssue
open System
open FSharp.Data
type Html = XmlProvider<"""
<div>
<span>
<ul>
<li/>
@troykershaw
troykershaw / InitialisingTrim.cs
Last active December 16, 2015 12:09
The HP TRIM SDK isn't registered in the GAC when TRIM is installed, so you need to add it to the 'PATH' environment variable before you can use it. Here's a simple console app that shows how I do it.
using Microsoft.Win32;
using System;
namespace TrimDemo
{
class Program
{
static void Main(string[] args)
{
//The TRIM SDK isn't registered in the GAC when TRIM is installed,