Skip to content

Instantly share code, notes, and snippets.

ChrisNTR chrisntr

Block or report user

Report or block chrisntr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View StackTrace
System.InvalidProgramException: Invalid IL code in BibleGatewaySharpDemo.BibleGatewayAsyncViewController:<UpdateBrowser>m__1 (System.Threading.Tasks.Task`1<string>): IL_0008: stfld 0x0400000d
at System.Threading.Tasks.TaskActionInvoker+ActionTaskInvoke`1[System.String].Invoke (System.Threading.Tasks.Task owner, System.Object state, System.Threading.Tasks.Task context) [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading.Tasks/TaskActionInvoker.cs:199
at System.Threading.Tasks.Task.InnerInvoke () [0x0000b] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading.Tasks/Task.cs:505
at System.Threading.Tasks.Task.ThreadStart () [0x00097] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading.Tasks/Task.cs:406
at --- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Runtime.ExceptionServ
View gist:5691280
//
// Copyright 2012 Xamarin Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
View gist:985841
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Text.RegularExpressions;
@chrisntr
chrisntr / gist:963514
Created May 9, 2011 — forked from Clancey/gist:963345
My testflight post build script
View gist:963514
//After build
Command : cp -r ${ProjectDir}/bin/iPhone/Release/MyAppName.app toZip/Payload
Working Directory: ${SolutionDir}
//AfterBuild
Command : zip -r ../MyApp.ipa *
WorkingDirectory: ${SolutionDir}/toZip
@chrisntr
chrisntr / gist:753798
Created Dec 24, 2010
Crash when compiling ATMHub lib
View gist:753798
Error 1: mtouch failed with the following message:
/var/folders/AF/AFygm6U7FauKTqcLCOhpUU+++TI/-Tmp-/tmp4e37e05e.tmp/main.m: In function 'monotouch_debug_connect':
/var/folders/AF/AFygm6U7FauKTqcLCOhpUU+++TI/-Tmp-/tmp4e37e05e.tmp/main.m:1779: warning: implicit declaration of function 'select'
/var/folders/AF/AFygm6U7FauKTqcLCOhpUU+++TI/-Tmp-/tmp4e37e05e.tmp/main.m: In function 'main':
/var/folders/AF/AFygm6U7FauKTqcLCOhpUU+++TI/-Tmp-/tmp4e37e05e.tmp/main.m:1821: warning: implicit declaration of function 'chdir'
/var/folders/AF/AFygm6U7FauKTqcLCOhpUU+++TI/-Tmp-/tmp4e37e05e.tmp/main.m:1838: warning: implicit declaration of function 'monotouch_enable_debug_tracking'
/var/folders/AF/AFygm6U7FauKTqcLCOhpUU+++TI/-Tmp-/tmp4e37e05e.tmp/main.m:1914: warning: implicit declaration of function 'dup2'
/var/folders/AF/AFygm6U7FauKTqcLCOhpUU+++TI/-Tmp-/tmp4e37e05e.tmp/main.m:1921: warning: implicit declaration of function 'mini_get_debug_options'
/var/folders/AF/AFygm6U7FauKTqcLCOhpUU+++TI/-Tmp-/tmp4e37e05e.tmp/main.m:1925:
View gist:749319
// My View Behind
var someAwesomeStuff = "More Awesome";
Bar((response) => {
Invoke(()=> { "neat " + response };
}
var moreAwesomeStuff = "Some Awesome";
// My other class
View Fixicated!
var str = "en-US";
var str2 = "f7e4d2b5-c6ea-df11-9264-00237de2db9e";
WebClient client = new WebClient();
//client.Encoding = new UTF8Encoding(true);
Uri uri = new Uri("http://catalog.zune.net/v3.2/" + str + "/apps/" + str2 + "?version=latest&clientType=WinMobile%207.0&store=Zest");
client.DownloadStringCompleted += (object s,DownloadStringCompletedEventArgs e) =>
{
if(e.Error == null)
{
Console.WriteLine ("No error, parse results");
View gist:742914
GET /v3.2/en-US/apps/f7e4d2b5-c6ea-df11-9264-00237de2db9e?version=latest&clientType=WinMobile%207.0&store=Zest HTTP/1.1
Connection: keep-alive
Host: catalog.zune.net
HTTP/1.1 200 OK
Content-Type: application/atom+xml
Server: Microsoft-IIS/7.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
View gist:742577
var items = new []{"Ice Cream", "Chips"};
segmentedControl = new UISegmentedControl(items);
segmentedControl.ControlStyle = UISegmentedControlStyle.Bezeled;
segmentedControl.Frame = new System.Drawing.RectangleF(40f, 40f, 200f, 30f);
window.AddSubview(segmentedControl);
@chrisntr
chrisntr / gist:717504
Created Nov 27, 2010
Fix for Chapter 10, Example 5
View gist:717504
UIImagePickerController picker;
public override void ViewDidLoad ()
{
base.ViewDidLoad ();
UIButton button = UIButton.FromType(UIButtonType.RoundedRect);
button.Frame = new RectangleF(0f, 30f, 320, 40f);
button.SetTitle("Select Image", UIControlState.Normal);
button.TouchUpInside += delegate(object sender, EventArgs e) {
You can’t perform that action at this time.