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.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Threading; | |
namespace matzoeffectiveo | |
{ | |
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
namespace Foo | |
{ | |
public static MyExtensions | |
{ | |
public static void AddRange<T>(this IList<T> list, IEnumerable<T> items) | |
{ | |
foreach(var item in items) | |
list.Add(item); | |
} | |
} |
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
sdfdsf |
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.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Text; | |
namespace XkcdFoo | |
{ |
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
Thanks for helping! | |
In my book we talk about "problem reports". The idea here is that someone has gone out and found graffiti in the local environment and taken pictures of them. They are presented on a page in the application. | |
In the application they are called "Reports". | |
There are four strings: | |
- Reports | |
- Reports refreshed. |
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 MainPage() | |
{ | |
this.InitializeComponent(); | |
GetItems<List<Object>>("ms-appx:///Common/data.js"); | |
} | |
private async Task GetItems<T>(string path) | |
{ | |
// do this in one hit... |
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 LocationHelper | |
{ | |
public static async Task<LocationResult> GetCurrentLocationAsync() | |
{ | |
try | |
{ | |
var locator = new Geolocator(); | |
var position = await locator.GetGeopositionAsync(); | |
// return... |