Skip to content

Instantly share code, notes, and snippets.

View mhutch's full-sized avatar

Mikayla Hutchinson mhutch

View GitHub Profile
@mhutch
mhutch / gist:1714726
Created February 1, 2012 02:36
Convert NSObjects to .NET primitives
class NSObjectConverter
{
static IntPtr selObjCType = MonoMac.ObjCRuntime.Selector.GetHandle ("objCType");
static IntPtr clsNSCFBoolean = Class.GetHandle ("NSCFBoolean");
public static object ConvertNumber (NSNumber num)
{
char kind;
unsafe {
kind = (char) *((byte *) MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (num.Handle, selObjCType));
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Novell\GtkSharp]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Novell\GtkSharp\InstallFolder]
@="C:\\Program Files (x86)\\GtkSharp\\2.12\\"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Novell\GtkSharp\Version]
@="2.12.10"
@mhutch
mhutch / gist:2253141
Created March 30, 2012 17:27
Possible fix for Gtk.Container resurrection bug
--- /c/Users/Michael/Desktop/Container.custom.txt Fri Mar 30 13:16:00 2012
+++ /c/Users/Michael/Desktop/Container.custom.txt-mod Fri Mar 30 13:26:24 2012
@@ -124,6 +124,7 @@
}
}
+//FIXME: fix this too
static void ForallOld_cb (IntPtr container, bool include_internals, IntPtr cb, IntPtr data)
{
try {
@mhutch
mhutch / gist:2625243
Created May 7, 2012 01:03
Copy Unity addins into upstream MonoDevelop
cp -r /Applications/Unity/MonoDevelop.app//Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Debugger.Soft.Unity/ /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/
cp -r /Applications/Unity/MonoDevelop.app//Contents/MacOS/lib/monodevelop/AddIns/BackendBindings/UnityScript/ /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/BackendBindings/
@mhutch
mhutch / StartProcess.cs
Last active October 4, 2015 11:38
Taskified StartProcess
using System;
using System.IO;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
//MIT license, from MonoDevelop ProcessUtils.cs
public static Task<int> StartProcess (ProcessStartInfo psi, TextWriter stdout, TextWriter stderr, CancellationToken cancellationToken)
{
var tcs = new TaskCompletionSource<int> ();
#!/bin/sh
MONO_ASM_DIR=/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.5
# need at least NuGet 3, Mono 4.1 ships 2.8.4
if [ ! -e nuget.exe ]; then
wget https://dist.nuget.org/win-x86-commandline/latest/nuget.exe || exit 1
fi
# for some reason Mono doesn't even build mono-api-html or mono-api-diff
@mhutch
mhutch / -
Created September 6, 2013 18:50
diff --git a/main/external/nrefactory b/main/external/nrefactory
--- a/main/external/nrefactory
+++ b/main/external/nrefactory
@@ -1 +1 @@
-Subproject commit a87d4cf3c543cde2257fb06e2f7ad15a8d50b375
+Subproject commit a87d4cf3c543cde2257fb06e2f7ad15a8d50b375-dirty
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs
index e7ec264..b20b9b2 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs
@mhutch
mhutch / -
Created September 18, 2013 17:24
diff --git a/Xwt.Gtk/Xwt.GtkBackend/PasswordEntryBackend.cs b/Xwt.Gtk/Xwt.GtkBackend/PasswordEntryBackend.cs
index 4809f7b..161eb3c 100644
--- a/Xwt.Gtk/Xwt.GtkBackend/PasswordEntryBackend.cs
+++ b/Xwt.Gtk/Xwt.GtkBackend/PasswordEntryBackend.cs
@@ -33,9 +33,9 @@ namespace Xwt.GtkBackend
public override void EnableEvent (object eventId)
{
base.EnableEvent (eventId);
- if (eventId is TextEntryEvent) {
- switch ((TextEntryEvent)eventId) {

Keybase proof

I hereby claim:

  • I am mhutch on github.
  • I am mhutch (https://keybase.io/mhutch) on keybase.
  • I have a public key whose fingerprint is 1197 038A 8417 71A5 2445 FE10 B124 21B1 E152 BAA9

To claim this, I am signing this object:

This file has been truncated, but you can view the full file.
INFO [2016-04-27 16:38:15Z]: Starting Xamarin Studio 6.0 (build 5104)
INFO [2016-04-27 16:38:15Z]: Running on Mono 4.4.0 (mono-4.4.0-branch/81f38a9) (64-bit)
INFO [2016-04-27 16:38:15Z]: Operating System: Mac OS X 10.11.4
Darwin saturn.local 15.4.0 Darwin Kernel Version 15.4.0
Fri Feb 26 22:08:05 PST 2016
root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64
INFO [2016-04-27 16:38:15Z]: GTK: Using gtkrc from /Applications/Xamarin Studio.app/Contents/Resources/lib/monodevelop/bin/gtkrc.mac
INFO [2016-04-27 16:38:15Z]: Using GTK+ 2.24.23
INFO [2016-04-27 16:38:16Z]: Add-in loaded: MonoDevelop.Core
INFO [2016-04-27 16:38:16Z]: Add-in loaded: MonoDevelop.Ide