Skip to content

Instantly share code, notes, and snippets.

View alanmcgovern's full-sized avatar

Alan McGovern alanmcgovern

View GitHub Profile
http://screencast.com/t/VkO9inJg
async Task DragConnectionLineAsync (DesignerItem item, Point location)
{
if (!Renderer.CaptureMouse ())
return;
IPhoneDesignerItem source;
var scene = item as SceneDesignerItem;
if (scene != null)
source = scene.ViewController;
else
async Task DragConnectionLineAsync (DesignerItem item, Point location)
{
if (!Renderer.CaptureMouse ())
return;
IPhoneDesignerItem source;
var scene = item as SceneDesignerItem;
if (scene != null)
source = scene.ViewController;
else
[Serializable]
public class SerializableDictionary<K, V> : Dictionary<K, V>
{
public SerializableDictionary ()
{
}
public SerializableDictionary (IEqualityComparer<K> comparer)
: base (comparer)
{
Alans-MacBook-Air:2.12 alan$ ls -Rla
total 32
drwxr-xr-x@ 7 alan staff 238 15 Mar 10:41 .
drwxr-xr-x@ 4 alan staff 136 15 Mar 2013 ..
-rw-r--r--@ 1 alan staff 12292 15 Mar 10:34 .DS_Store
drwxr-xr-x@ 28 alan staff 952 15 Mar 10:33 bin
drwxr-xr-x@ 5 alan staff 170 15 Mar 2013 etc
drwxr-xr-x@ 6 alan staff 204 15 Mar 10:23 lib
drwxr-xr-x@ 3 alan staff 102 15 Mar 2013 lib1
<?xml version="1.0" encoding="utf-16" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="1.1" toolsVersion="2182" systemVersion="11D50b" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" initialViewController="1">
<dependencies>
<development defaultVersion="4200" identifier="xcode" />
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="933" />
</dependencies>
<scenes>
<scene sceneID="0">
<objects>
<viewController id="1" sceneMemberID="viewController">
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/snowbackground">
<DaysUntilXmasAndroid.SnowFallView
android:layout_width="match_parent"
android:layout_height="match_parent" />
<LinearLayout
android:orientation="vertical"
Unable to read package from path 'FSharp.Compiler.Service.1.4.2.1.nupkg'.
/*
* Copyright (c) 2000 Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
void Func ()
{
ThreadPool.QueueUserWorkItem (delegate {
InvokeOnMainThread (() => {
myLabel.Text = "Computation beginning...";
});
Thread.Sleep (10000); // Simulate downloading a large file or calculating lots of stuff
InvokeOnMainThread (() => {