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 Xamarin.Forms; | |
using Xamarin.Forms.Platform.Android; | |
using System.Reflection; | |
using Android.Views; | |
using Android.App; | |
using static Android.Views.View; | |
using Android.Content; | |
using PickerTest.Droid; |
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.Threading.Tasks; | |
using System.Web.Http; | |
using Microsoft.Bot.Builder.Dialogs; | |
using Microsoft.Bot.Connector; | |
using System.Linq; | |
namespace XamUBot | |
{ | |
/// <summary> | |
/// This controller handles all incoming messages the bot can process. |
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.Runtime.CompilerServices; | |
namespace LeakTest | |
{ | |
public class MemoryLeakCheck<T> where T : class | |
{ | |
string filename; | |
int lineNumber; | |
WeakReference<T> reference; |
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.Runtime.CompilerServices; | |
namespace LeakTest | |
{ | |
public class MemoryLeakCheck<T> where T : class | |
{ | |
string filename; | |
int lineNumber; | |
WeakReference<T> reference; |
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
<Style x:Key="infoLabelStyle" TargetType="Label"> | |
<Setter Property="TextColor" Value="Green" /> | |
</Style> | |
<Style x:Key="testStyle" TargetType="Label"> | |
<Setter Property="TextColor" Value="Red" /> | |
</Style> | |
<Label x:Name="totalOutput" Text="0.00" Style="{StaticResource infoLabelStyle}" Grid.Row="2" Grid.Column="1"> | |
<Label.Triggers> |
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 override View GetView (int position, View convertView, ViewGroup parent) | |
{ | |
var inflater = LayoutInflater.From (parent.Context); | |
var view = convertView; | |
if(view == null) | |
{ | |
view = inflater.Inflate (Resource.Layout.InstructorRow, parent, false); | |
} |
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
namespace System.Threading.Tasks.Schedulers | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading; | |
class Program | |
{ |
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 Foundation; | |
using UIKit; | |
using System; | |
namespace NotifyMe | |
{ | |
public static class NotificationHelper | |
{ | |
public static void CreateDailyNotification (string title, string message, DateTime shownFirst) | |
{ |
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 UIKit; | |
using QuickLook; | |
using Foundation; | |
namespace Preview | |
{ | |
class PreviewDataSource : QLPreviewControllerDataSource | |
{ |
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
• Sandbox download: https://github.com/calabash/install | |
• Directly install Sandbox from Terminal: curl -sSL https://raw.githubusercontent.com/calabash/install/master/install-osx.sh | bash | |
• List of Calabash environment variables can be found at: http://calabashapi.xamarin.com/ios/file.ENVIRONMENT_VARIABLES.html | |
• List all iOS devices in Terminal to get "DEVICE_TARGET": instruments -s devices | |
• Set Simulator ID in one go when running a test: APP_BUNDLE_PATH=TaskyiOS.app DEVICE_TARGET="iPhone 6s (9.2)" cucumber | |
• Show Calabash iOS version: calabash-ios version | |
• Update to latest Calabash (run in Calabash Sandbox): gem install calabash-cucumber | |
• Get Sandbox Version: calabash-sandbox version | |
• Check what is using the Calabash Server's port: lsof -wni tcp:37265 | |
○ If something uses the port You can grab the `pid` and `kill -9` it |
NewerOlder