Skip to content

Instantly share code, notes, and snippets.

mikebluestein / main.dart
Created June 5, 2018 12:16
Flutter article source
View main.dart
import 'package:flutter/material.dart';
void main() {
color: Colors.lightBlue,
child: Padding(
padding: const EdgeInsets.fromLTRB(0.0, 50.0, 0.0, 0.0),
child: Directionality(
View AutolayoutHelp.MD
public static class AutolayoutHelper
	[DllImport (Constants.ObjectiveCLibrary, EntryPoint = "objc_msgSend")]
	static extern IntPtr IntPtr_objc_msgSend (IntPtr receiver, IntPtr selector);

	public static void AutoLayoutTrace ()
		var trace = Runtime.GetNSObject (IntPtr_objc_msgSend (UIApplication.SharedApplication.KeyWindow.Handle, new Selector ("_autolayoutTrace").Handle));
mikebluestein / Scene Kit
Created June 12, 2015 18:30
simple example showing how to load a Collada file in Scene Kit using Xamarin.iOS
View Scene Kit
SCNScene scene;
SCNView sceneView;
SCNCamera camera;
SCNNode cameraNode;

public override void ViewDidLoad ()
	scene = SCNScene.FromFile ("duck", "ColladaModels.scnassets", new SCNSceneLoadingOptions ());
mikebluestein / gist:985273c7db8b33698668
Created April 9, 2015 16:24
The Apple Review Song
View gist:985273c7db8b33698668
I'm waiting and I'm waiting for my Apple review.
I'm going to get rejected and so are you.
I'm waiting and I'm waiting for my Apple review.
I have no watch. There's not much I can do.
I'm waiting and I'm waiting for my Apple review.
I may as well have built an app for a kazoo.
mikebluestein / gist:47ba7b7ca4ce65f36b41
Created July 28, 2014 20:49
UICollectionView using a UIViewController
View gist:47ba7b7ca4ce65f36b41
using System;
using System.Drawing;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
namespace CollectionViewWithControllerDemo
public class Controller : UIViewController
CVSource source;
mikebluestein / gist:e34ef9237619c09bcb7a
Created July 27, 2014 17:30
Core Image Detectors
View gist:e34ef9237619c09bcb7a
using System;
using MonoTouch.CoreImage;
using MonoTouch.UIKit;
namespace CIDetectorsDemo
public class DetectorController : UIViewController
UIImageView imageView;
View gist:b784ab08889d83fb0a43
var imageView = new UIImageView ();
imageView.Frame = UIScreen.MainScreen.Bounds;
imageView.ContentMode = UIViewContentMode.ScaleAspectFit;
var qrCode = new CIQRCodeGenerator {
Message = NSData.FromString ("test"),
CorrectionLevel = "Q"
UIGraphics.BeginImageContext (new SizeF (qrCode.Extent.Width * 8, qrCode.Extent.Height * 8));
View gist:7bb005488a78aac41c60
rollin in C.T. ...VW in gear 3
pickin up the milk, the produce, and some tea
dropin crazy rhymes, while I'm running out of time
got my wife some flowers, forgot the movie, but got Amazon Prime
hey ho
but got Amazon Prime
hey ho
but got Amazon Prime
mikebluestein / EffectsController.cs
Created July 8, 2014 22:19
iOS 8 Visual Effects using Xamarin
View EffectsController.cs
using System;
using System.Drawing;
using MonoTouch.UIKit;
namespace ViewEffectsDemo
public class EffectsController : UIViewController
UIImageView imageView;
UIScrollView scrollView;
View FSHelloSceneKitViewController.fs
namespace FSHelloSceneKit
open System
open MonoTouch.UIKit
open MonoTouch.Foundation
open MonoTouch.SceneKit
type FSHelloSceneKitViewController () =
inherit UIViewController()