Skip to content

Instantly share code, notes, and snippets.

View bojanrajkovic's full-sized avatar

Bojan Rajkovic bojanrajkovic

View GitHub Profile
commit 1c337bbc27845faba14713fc17a5b2d1b431a939
Author: Miguel de Icaza <miguel@gnome.org>
Date: Wed Jan 2 16:20:37 2002 +0000
2002-01-02 Miguel de Icaza <miguel@ximian.com>
* cs-tokenizer.cs: (Tokenizer.escape): Escape '\r' as '\r' not as
'r'. Allows mcs to parse itself fully.
svn path=/trunk/mcs/; revision=1782
@bojanrajkovic
bojanrajkovic / emitted.il
Created October 26, 2010 19:49
Emitted IL
.method public static
default void countdown (int32 n) cil managed
{
// Method begins at RVA 0x2064
// Code size 18 (0x12)
.maxstack 4
IL_0000: ldarg.0
IL_0001: switch (
IL_0011)
IL_000a: ldarg.0
@bojanrajkovic
bojanrajkovic / emitted.il
Created October 26, 2010 20:05
Emitted IL
// method line 2
.method public static hidebysig
default void Main (string[] args) cil managed
{
// Method begins at RVA 0x20f4
.entrypoint
// Code size 135 (0x87)
.maxstack 10
.locals init (
string V_0,
saul:admin bojanrajkovic$ cat APAAdminUI.sln
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "APAAdminUI", "APAAdminUI\APAAdminUI.csproj", "{62AB80AA-1006-4CBF-ADA2-54BAF70C786F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
using System; using System.IO; using System.Linq; using System.Collections.Generic;
public class HuffmanNode { public char? v; public int c; public HuffmanNode l, r; }
namespace Huffman {
class HuffmanCoder {
static int C<T> (IEnumerable<T> c) { return c.Count (); }
static T D<T> (Queue<T> q) { return q.Dequeue (); }
static T P<T> (Queue<T> q) { return q.Peek (); }
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Runtime.InteropServices;
public class HuffmanNode {
static int pad = Marshal.SizeOf (typeof (IntPtr)) * 2;
static string fmt = String.Format ("*: 0x{{4:X{0}}} v: {{0:0}} c: {{1}} l: 0x{{2:X{0}}} r: 0x{{3:X{0}}}", pad);
public char? v; public int c; public HuffmanNode l, r;
public static HuffmanNode operator + (HuffmanNode a, HuffmanNode b) { return new HuffmanNode { v = null, c = a.c + b.c, l = a, r = b }; }
public static explicit operator int (HuffmanNode n) { return n == null ? 0 : n.GetHashCode (); }
internal void Print () { Console.WriteLine (fmt, v ?? '-', c, (int) l, (int) r, GetHashCode ()); if (l != null) l.Print (); if (r != null) r.Print (); }
}
using System; using System.IO; using System.Linq; using System.Collections.Generic; using System.Runtime.InteropServices;
public class HuffmanNode {
static int pad = Marshal.SizeOf (typeof (IntPtr)) * 2;
static string fmt = String.Format ("*: 0x{{4:X{0}}} v: {{0:0}} c: {{1}} l: 0x{{2:X{0}}} r: 0x{{3:X{0}}}", pad);
public char? v; public int c; public HuffmanNode l, r;
public static HuffmanNode operator + (HuffmanNode a, HuffmanNode b) { return new HuffmanNode { v = null, c = a.c + b.c, l = a, r = b }; }
public static explicit operator int (HuffmanNode n) { return n == null ? 0 : n.GetHashCode (); }
internal void Print () { Console.WriteLine (fmt, v ?? '-', c, (int) l, (int) r, GetHashCode ()); if (l != null) l.Print (); if (r != null) r.Print (); }
}
diff --git a/extras/MonoDevelop.IPhone/MonoDevelop.IPhone/IPhoneProject.cs b/extras/MonoDevelop.IPhone/MonoDevelop.IPhone/IPhoneProject.cs
index ec3bac5..7112dde 100644
--- a/extras/MonoDevelop.IPhone/MonoDevelop.IPhone/IPhoneProject.cs
+++ b/extras/MonoDevelop.IPhone/MonoDevelop.IPhone/IPhoneProject.cs
@@ -437,13 +437,13 @@ namespace MonoDevelop.IPhone
protected override BuildResult OnBuild (IProgressMonitor monitor, ConfigurationSelector configuration)
{
- RemoveUploadMarker ();
+ RemoveUploadMarker ((IPhoneProjectConfiguration) GetConfiguration (configuration));
using FluentNHibernate.Mapping;
namespace APAAdminUI.Maps
{
public class CAGIData : ClassMap<Models.CAGIData>
{
public CAGIData ()
{
Table ("cagi_data_sheet");
LazyLoad ();
Thread 0: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x94b6e0da mach_msg_trap + 10
1 libSystem.B.dylib 0x94b6e847 mach_msg + 68
2 com.apple.CoreFoundation 0x910b5faf __CFRunLoopRun + 2079
3 com.apple.CoreFoundation 0x910b5094 CFRunLoopRunSpecific + 452
4 com.apple.CoreFoundation 0x910b4ec1 CFRunLoopRunInMode + 97
5 com.apple.HIToolbox 0x95b74f9c RunCurrentEventLoopInMode + 392
6 com.apple.HIToolbox 0x95b74d51 ReceiveNextEventCommon + 354
7 com.apple.HIToolbox 0x95b74bd6 BlockUntilNextEventMatchingListInMode + 81
8 com.apple.AppKit 0x91cd1a89 _DPSNextEvent + 847