This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BackgroundImagePage : ContentPage | |
{ | |
public BackgroundImagePage() => | |
Content = new Grid // this is the outer grid | |
{ | |
Children = | |
{ | |
// this image fills the outer grid and sits behind the 'original' content | |
new Image { Source = new Uri("https://tinyurl.com/msdevbg"), Aspect = Aspect.AspectFill }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class NSNotificationCenterExtensions | |
{ | |
public static IObservable<NSNotification> ObserveNotification(this NSNotificationCenter notificationCenter, NSString notificationKey) => | |
Observable.Create<NSNotification>(obs => | |
{ | |
var nsObserver = notificationCenter.AddObserver(notificationKey, obs.OnNext); | |
return Disposable.Create(() => notificationCenter.RemoveObserver(nsObserver)); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading.Tasks; | |
using Foundation; | |
using HockeyApp.iOS; | |
using UIKit; | |
namespace HockeyCrash | |
{ | |
[Register("AppDelegate")] | |
public class AppDelegate : UIApplicationDelegate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Query Kind="Program"> | |
<Reference><RuntimeDirectory>\System.Windows.Forms.dll</Reference> | |
<Reference><RuntimeDirectory>\System.Security.dll</Reference> | |
<Reference><RuntimeDirectory>\System.Configuration.dll</Reference> | |
<Reference><RuntimeDirectory>\Accessibility.dll</Reference> | |
<Reference><RuntimeDirectory>\System.Runtime.Serialization.Formatters.Soap.dll</Reference> | |
<Reference><RuntimeDirectory>\System.Deployment.dll</Reference> | |
<NuGetReference>DynamicLINQ</NuGetReference> | |
<NuGetReference>DynamicQuery</NuGetReference> | |
<NuGetReference>Newtonsoft.Json</NuGetReference> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name":"dark-style-from-vs-2015", | |
"version":"1.0", | |
"description":"Imported color scheme", | |
"originator":"Imported from /Users/rdavis/Library/XamarinStudio-5.0/HighlightingSchemes/dark-style-from-vs-2015.vssettings", | |
"colors":[ | |
{"name": "Background(Read Only)", "color":"#1E1E1E" }, | |
{"name": "Search result background", "color":"#005F60" }, | |
{"name": "Search result background (highlighted)", "color":"#007F80" }, | |
{"name": "Fold Square", "color":"#A5A5A5" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AcceptSelfSignedCertificateWebView : UIWebView | |
{ | |
private NSUrlRequest _failedRequest; | |
private bool _authenticated; | |
private bool OnShouldStartLoad(UIWebView webView, NSUrlRequest request, UIWebViewNavigationType navigationType) | |
{ | |
var result = _authenticated; | |
if (!_authenticated) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
var myXamarinApps = | |
Directory | |
.EnumerateFiles(Path.Combine(Environment.GetEnvironmentVariable("HOMEPATH"), @"Music\iTunes\iTunes Media\Mobile Applications"), "*.ipa") | |
.Where(f=> ZipFile.Open(f, ZipArchiveMode.Read) | |
.GetRawEntries() | |
.Any(e=> e.FullName.Contains(".monotouch-"))); | |
foreach (var app in myXamarinApps) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Provides a convenience method for constructing an EnumerableStream<T>. | |
/// </summary> | |
public static class EnumerableStream | |
{ | |
public static EnumerableStream<T> Create<T>(IEnumerable<T> source, Func<T, List<byte>> serializer) | |
{ | |
return new EnumerableStream<T>(source, serializer); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System | |
open System.IO | |
open System.Net | |
open Akka | |
open Akka.Actor | |
open Akka.FSharp | |
open Akka.Remote | |
open Akka.Actor | |
open Akka.Cluster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Query Kind="Program"> | |
<NuGetReference>Newtonsoft.Json</NuGetReference> | |
<NuGetReference Prerelease="true">rda.SocketHelpers</NuGetReference> | |
<Namespace>SocketHelpers.Discovery</Namespace> | |
<Namespace>SocketHelpers.Messaging</Namespace> | |
<Namespace>Sockets.Plugin</Namespace> | |
<Namespace>Splat</Namespace> | |
<Namespace>System.Reactive.Linq</Namespace> | |
<Namespace>System.Threading.Tasks</Namespace> | |
</Query> |
NewerOlder