create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
/* | |
DynamicMethod creation: 0.0053597000ms | |
LINQ expressions creation: 0.1050939000ms | |
DynamicMethod invocation: 0.0000474000ms | |
Expression invocation: 0.0000450000ms | |
MethodInfo invocation: 0.0002190000ms | |
Calls to reach even with MethodInfo: | |
DynamicMethod: 24.6899543379 |
List<string> buttons = new List<string>(); | |
if (UIImagePickerController.IsCameraDeviceAvailable(UIImagePickerControllerCameraDevice.Rear)) | |
{ | |
hasPhoto = true; | |
buttons.Add("Take a photo"); | |
} | |
hasExisting = true; | |
buttons.Add("Choose Existing"); |
using System; | |
using System.Threading.Tasks; | |
using MonoMac.CoreFoundation; | |
using MonoMac.AppKit; | |
using System.Threading; | |
namespace GCDTest | |
{ | |
class MainClass | |
{ |
public class AutofacApiDependencyResolver : AutofacDependencyScope, IDependencyResolver | |
{ | |
private readonly ILifetimeScope _container; | |
public AutofacApiDependencyResolver(ILifetimeScope container) : base(container) | |
{ | |
_container = container; | |
} | |
public IDependencyScope BeginScope() |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
public static class Db { | |
public static bool IsInitialized { get; private set; } | |
static SQLiteConnection _db; | |
static SyncTaskScheduler _syncScheduler; | |
public static void Initialize(string dbPath) { | |
if(IsInitialized) return; |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using MonoTouch.Foundation; | |
Task.Factory.StartNew(() => { | |
Console.WriteLine ("ping"); | |
Thread.Sleep(4000); | |
Console.WriteLine ("pong"); | |
return "from the thread"; |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using MonoTouch.Foundation; | |
namespace MonoTouch.Utils { | |
public static class Extensions { | |
public static string Dump(this NSDictionary dictionary, int level = 0) { | |
var dump = ""; |
//MIT license | |
public static UIImage ScaleImage(UIImage image, int maxSize) | |
{ | |
UIImage res; | |
using (CGImage imageRef = image.CGImage) | |
{ | |
CGImageAlphaInfo alphaInfo = imageRef.AlphaInfo; |
using System; | |
using System.IO; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
namespace LaTrompa.Web | |
{ | |
public class CssParser |