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 Android.Content; | |
using Android.Support.V4.View; | |
using Android.Util; | |
using Android.Views; | |
namespace InterceptingViewPagerExample.Droid | |
{ | |
class InterceptingViewPager : ViewPager | |
{ |
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> | |
/// Show the view model. | |
/// </summary> | |
[MvxCommand("ShowCommand")] | |
public void Show() | |
{ | |
this.ShowViewModel<MainViewModel>(); | |
} |
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.Globalization; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
public static class PropertyNameSupport | |
{ | |
private const string ExceptionMessageFormat = "Property expression {0}. Ensure calling with () => Property."; | |
private const string ParameterName = "propertyExpression"; |
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 OverrideFormattedStringExtension | |
{ | |
// | |
// Static Methods | |
// | |
public static SpannableString ToAttributed(this FormattedString formattedString, Font defaultFont, Color defaultForegroundColor, TextView view) | |
{ | |
if (formattedString == null) | |
{ | |
return null; |
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
adb -s [device] shell input keyevent 4 |
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 LakeShore.Sources.Core.Instrument | |
{ | |
using Xamarin.Forms; | |
public class GifImageView : View | |
{ | |
public static readonly BindableProperty SourceProperty = BindableProperty.Create( | |
propertyName: nameof(Source), | |
returnType: typeof(string), | |
declaringType: typeof(GifImageView), |
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 com.github.gist.adam-- | |
{ | |
using System.Threading; | |
using PCLStorage; | |
using FileAccess = PCLStorage.FileAccess; | |
public static class PCLStorageExtensions | |
{ | |
public static async void CopyFileTo(this IFile file, IFolder destinationFolder, CancellationToken cancellationToken = default(CancellationToken)) | |
{ |
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
adb devices | |
adb shell screencap -p /sdcard/screen.png | |
adb pull -p -a /sdcard/screen.png | |
adb shell rm /sdcard/screen.png | |
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b) | |
For /f "tokens=1-3 delims=/:" %%a in ("%TIME%") do (set mytime=%%a-%%b-%%c) | |
set mytime=%mytime: =% |
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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<runtime> | |
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | |
<dependentAssembly> | |
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> | |
<bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" /> | |
</dependentAssembly> | |
</assemblyBinding> |
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 TestingCloudTableWithAzureStorageEmulator | |
{ | |
private CloudTableClient developmentCloudTableClient; | |
private CloudTable emulatedCloudTable; | |
[OneTimeSetUp] | |
public void OneTimeSetUp() | |
{ | |
var azureStorageEmulatorProcess = Process.Start("C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\Storage Emulator\\AzureStorageEmulator.exe", "start"); | |
azureStorageEmulatorProcess?.WaitForExit(2000); |
OlderNewer