Skip to content

Instantly share code, notes, and snippets.

@joelmartinez
joelmartinez / iter.cs
Created Aug 1, 2014
A simple extension method that gives you the "Iter" function from F#
View iter.cs
static class x10 {
public static IEnumerable<T> Iter<T>(this IEnumerable<T> list, Action<T> action) {
foreach (var n in list) {
action (n);
yield return n;
}
}
}
@Clancey
Clancey / BrightlyBlurredUIView
Last active Dec 24, 2015
A brightly colored iOS 7 UIBlurView
View BrightlyBlurredUIView
using System;
using MonoTouch.UIKit;
using MonoTouch.CoreAnimation;
public class BrightlyBlurredUIView: UIView
{
CALayer blurLayer,accentLayer;
UIView accentView;
UIToolbar toolbar;
public BrightlyBlurredUIView()
View TableSource.cs
using System;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using System.Threading.Tasks;
namespace BasicTable {
public class TableSource : UITableViewSource {
protected string[] tableItems;
protected string cellIdentifier = "TableCell";