Skip to content

Instantly share code, notes, and snippets.

View danwaters's full-sized avatar

Dan Waters danwaters

View GitHub Profile
Country_code Country Total Library Size No. of TV Shows No. of Movies Cost Per Month - Basic ($) Cost Per Month - Standard ($) Cost Per Month - Premium ($)
ar Argentina 4760 3154 1606 3.74 6.3 9.26
au Australia 6114 4050 2064 7.84 12.12 16.39
at Austria 5640 3779 1861 9.03 14.67 20.32
be Belgium 4990 3374 1616 10.16 15.24 20.32
bo Bolivia 4991 3155 1836 7.99 10.99 13.99
br Brazil 4972 3162 1810 4.61 7.11 9.96
bg Bulgaria 6797 4819 1978 9.03 11.29 13.54
ca Canada 6239 4311 1928 7.91 11.87 15.03
cl Chile 4994 3156 1838 7.07 9.91 12.74
@danwaters
danwaters / Popper.cs
Created January 19, 2017 16:09
A little animated popup message that attaches to any AbsoluteLayout and displays in the center.
public static class Popper
{
public async static Task Pop (string message, AbsoluteLayout attachLayout, int showforMilliseconds = 1500)
{
var container = new StackLayout
{
HorizontalOptions = LayoutOptions.Center,
VerticalOptions = LayoutOptions.Center,
BackgroundColor = Color.FromHex ("#DDEFEFEF"),
Padding = 10
@danwaters
danwaters / SwipeToDelete.cs
Last active August 29, 2015 14:23
Swipe to delete on iOS
[Test]
public void SwipeToDelete ()
{
app.SwipeToDelete ("MSCMoreOptionTableViewCell", 0);
app.Screenshot ("Swipe to delete");
}
public static class AppExtensions
{
public static void SwipeToDelete(this IApp app, string uiClass, int index)
<?xml version="1.0" encoding="UTF-8"?>
<ExtensionModel>
<Extension path="/MonoDevelop/Ide/FileTemplates">
<FileTemplate id="PageObjects" file="../Templates/PageObjectAppExtensions.xft.xml"/>
</Extension>
</ExtensionModel>
@danwaters
danwaters / gist:beffd959da6244b76c53
Created June 3, 2015 17:22
Page Object file template
<?xml version="1.0" encoding="UTF-8"?>
<Template>
<TemplateConfiguration>
<_Name>Xamarin.UITest Page Object App Extensions</_Name>
<Icon>md-nunit-library-project</Icon>
<_Category>General</_Category>
<_Description>This file contains useful app extensions, an example page object, and an example hook to invoke your page object methods easily from the IApp object.</_Description>
<DefaultFilename>LoginPage</DefaultFilename>
<ProjectType>Addin</ProjectType>
</TemplateConfiguration>
var builder = new StringBuilder();
builder.AppendLine("***** Scenario Complete: TIMING INFO BELOW *****");
builder.AppendLine("Completed in " + timing.RunTime.ToString());
var result = await client.GetAsync("api/timingentry?scenarioGuid=" + timing.Guid);
if (result.IsSuccessStatusCode)
{
var runtime = result.Content.ReadAsAsync<TimeSpan>();
builder.AppendLine("Average local runtime for this scenario is: " + runtime);
builder.AppendLine("The most recent local runtime was ...");

Keybase proof

I hereby claim:

  • I am danwaters on github.
  • I am danwaters (https://keybase.io/danwaters) on keybase.
  • I have a public key ASAYXCFH5-vRrn9MSfZ_sS-yPqj0SW2mQscD9g1N3HTcywo

To claim this, I am signing this object: