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.Collections.Generic; | |
using System.Linq; | |
using ARKit; | |
using ARKitExample.Nodes; | |
using Foundation; | |
using SceneKit; | |
using UIKit; | |
namespace ARKitExample |
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 Coord | |
{ | |
public double lon { get; set; } | |
public double lat { get; set; } | |
} | |
public class Weather | |
{ | |
public int id { get; set; } | |
public string main { get; set; } |
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; | |
namespace Yournamespace | |
{ | |
public partial class Resource | |
{ | |
public partial class Attribute | |
{ | |
// public const int mediaRoutePlayDrawable = -1; | |
public const int mediaRouteSettingsDrawable = -2; |
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 TextBlobOperations | |
{ | |
public static void GetTextBlobs(object element) | |
{ | |
if (element == null) | |
return; | |
var type = element.GetType(); | |
foreach (var relationshipProperty in type.GetTextBlobProperties()) | |
{ |
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 AsyncHelper | |
{ | |
private static readonly TaskFactory _myTaskFactory = new | |
TaskFactory(CancellationToken.None, | |
TaskCreationOptions.None, | |
TaskContinuationOptions.None, | |
TaskScheduler.Default); | |
public static TResult RunSync<TResult>(Func<Task<TResult>> func) | |
{ |
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 readonly BindableProperty $Name$Property = | |
BindableProperty.Create<$owner$, $type$>( | |
p => p.$Name$, default($type$)); | |
public $type$ $Name$ { | |
get { return ($type$)GetValue($Name$Property); } | |
set { SetValue($Name$Property, value); } | |
} |
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 System.Linq; | |
using System.Diagnostics; | |
namespace Robotics.Mobile.Core.Bluetooth.LE | |
{ | |
public static class Extensions | |
{ | |
/// <summary> |
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
/* | |
* Note* this is for demo purposes only and is not a example of good network code, | |
* http://www.michaelridland.com/mobile/asp-net-mvc-xamarin-mashups/ | |
*/ | |
public class RemoteDataSource : IDataSource | |
{ | |
static string HostBase = "http://192.168.56.101:49203"; | |
public RemoteDataSource () | |
{ | |
} |
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 LocalDataSource : IDataSource | |
{ | |
SQLiteConnection _sqliteConnection; | |
public LocalDataSource () | |
{ | |
_sqliteConnection = Xamarin.Forms.DependencyService.Get<ISQLiteFactory> ().GetConnection("app.db"); | |
CreateTable (); | |
} |
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 JellyBeanGraphCalculator | |
{ | |
IDataSource _datasource; | |
public JellyBeanGraphCalculator (IDataSource datasource) | |
{ | |
_datasource = datasource; | |
} | |
public IEnumerable<JellyBeanGraphData> GetGraphData() | |
{ |
NewerOlder