Skip to content

Instantly share code, notes, and snippets.

View wagonli's full-sized avatar

Patrick Sachet wagonli

  • Libon
  • France
View GitHub Profile
@wagonli
wagonli / DeviceTypeHelper.cs
Last active September 10, 2019 22:32
Detect device type on Universal Windows Platform (UWP)
using Windows.System.Profile;
using Windows.UI.ViewManagement;
namespace Wagonli.Tools
{
public static class DeviceTypeHelper
{
public static DeviceFormFactorType GetDeviceFormFactorType()
{
switch (AnalyticsInfo.VersionInfo.DeviceFamily)
@wagonli
wagonli / gist:8bf0fb100a3b5568192e
Created January 21, 2016 10:27
int to loop extensions
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
namespace Wagonli.Tools
{
/// <summary>
/// Extensions to create for loop from an integer using the syntax
/// %int%.Times(the expression to execute)
/// </summary>
@wagonli
wagonli / himawari.ps1
Last active February 4, 2016 09:52 — forked from MichaelPote/himawari.ps1
Windows Powershell Script to download the latest image from the Himawari-8 satelite, combine the tiles into a single image, convert to jpg and then set as the desktop background.
#
# Himawari-8 Downloader
#
#
#
# This script will scrape the latest image from the Himawari-8 satellite, recombining the tiled image,
# converting it to a JPG which is saved in My Pictures\Himawari\ and then set as the desktop background.
#
# http://himawari8.nict.go.jp/himawari8-image.htm
#

Keybase proof

I hereby claim:

  • I am wagonli on github.
  • I am lamouette (https://keybase.io/lamouette) on keybase.
  • I have a public key ASBAWX6z2e0gN9IVdKrq33uVONQUgo_S2PXXv6FWKgod_wo

To claim this, I am signing this object: