Skip to content

Instantly share code, notes, and snippets.

@mikebluestein
mikebluestein / main.dart
Created June 5, 2018 12:16
Flutter article source
import 'package:flutter/material.dart';
void main() {
runApp(
Container(
color: Colors.lightBlue,
child: Padding(
padding: const EdgeInsets.fromLTRB(0.0, 50.0, 0.0, 0.0),
child: Directionality(
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
mikebluestein / Scene Kit Collada.md
Created June 12, 2015 18:30
simple example showing how to load a Collada file in Scene Kit using Xamarin.iOS
SCNScene scene;
SCNView sceneView;
SCNCamera camera;
SCNNode cameraNode;

public override void ViewDidLoad ()
{
	scene = SCNScene.FromFile ("duck", "ColladaModels.scnassets", new SCNSceneLoadingOptions ());
@mikebluestein
mikebluestein / gist:985273c7db8b33698668
Created April 9, 2015 16:24
The Apple Review Song
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
mikebluestein / gist:47ba7b7ca4ce65f36b41
Created July 28, 2014 20:49
UICollectionView using a UIViewController
using System;
using System.Drawing;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
namespace CollectionViewWithControllerDemo
{
public class Controller : UIViewController
{
CVSource source;
@mikebluestein
mikebluestein / gist:e34ef9237619c09bcb7a
Created July 27, 2014 17:30
Core Image Detectors
using System;
using MonoTouch.CoreImage;
using MonoTouch.UIKit;
namespace CIDetectorsDemo
{
public class DetectorController : UIViewController
{
UIImageView imageView;
var imageView = new UIImageView ();
imageView.Frame = UIScreen.MainScreen.Bounds;
imageView.ContentMode = UIViewContentMode.ScaleAspectFit;
var qrCode = new CIQRCodeGenerator {
Message = NSData.FromString ("test"),
CorrectionLevel = "Q"
}.OutputImage;
UIGraphics.BeginImageContext (new SizeF (qrCode.Extent.Width * 8, qrCode.Extent.Height * 8));
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
mikebluestein / EffectsController.cs
Created July 8, 2014 22:19
iOS 8 Visual Effects using Xamarin
using System;
using System.Drawing;
using MonoTouch.UIKit;
namespace ViewEffectsDemo
{
public class EffectsController : UIViewController
{
UIImageView imageView;
UIScrollView scrollView;
namespace FSHelloSceneKit
open System
open MonoTouch.UIKit
open MonoTouch.Foundation
open MonoTouch.SceneKit
type FSHelloSceneKitViewController () =
inherit UIViewController()