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.Diagnostics; | |
using System.Net.Http; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Foundation; | |
using ModernHttpClient; | |
using UIKit; | |
namespace App6 |
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
// LINQPad script with a programatical solution to the following logic puzzle. | |
// All credit goes to Peter Norvig's and his solution here: | |
// http://nbviewer.ipython.org/url/norvig.com/ipython/Cheryl.ipynb | |
// 1. Albert and Bernard just became friends with Cheryl, and they want to know when her birtxhday is. | |
// Cheryl gave them a list of 10 possible dates: | |
// May 15 May 16 May 19 | |
// June 17 June 18 | |
// July 14 July 16 | |
// August 14 August 15 August 17 |
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
#IfWinActive ahk_exe OUTLOOK.EXE | |
^!z::SendInput æ | |
^!+z::SendInput Æ | |
^!w::SendInput å | |
^!+w::SendInput Å | |
^!l::SendInput ø | |
^!+l::SendInput Ø |
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
am start --user 0 -n com.android.settings/.DevelopmentSettings |
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.Windows.Input; | |
using Windows.Phone.UI.Input; | |
using Windows.UI.Xaml.Navigation; | |
using Cirrious.MvvmCross.ViewModels; | |
using Cirrious.MvvmCross.WindowsCommon.Views; | |
namespace Lolz.WindowsPhone.Views | |
{ | |
public abstract class BaseView<T> : MvxWindowsPage<T> where T : MvxViewModel | |
{ |
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
/* | |
* C# derivative of m_random.c used in DOOM | |
* https://github.com/id-Software/DOOM/blob/master/linuxdoom-1.10/m_random.c | |
* | |
* Copyright (C) 1993-1996 by id Software, Inc. | |
* | |
* This source is available for distribution and/or modification | |
* only under the terms of the DOOM Source Code License as | |
* published by id Software. All rights reserved. | |
* |
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
[Register("dk.ostebaronen.droid.CircularProgressDrawable")] | |
public class CircularProgressDrawable | |
: Drawable | |
, IAnimatable | |
{ | |
private static readonly IInterpolator AngleInterpolator = new LinearInterpolator(); | |
private static readonly IInterpolator SweepInterpolator = new DecelerateInterpolator(); | |
private static readonly RectF _bounds = new RectF(); | |
private const int AngleAnimatorDuration = 2000; |
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 ColorUtils | |
{ | |
public static class LabConstants | |
{ | |
public const int Kn = 18; | |
public const float Xn = 0.950470f; | |
public const float Yn = 1f; | |
public const float Zn = 1.088830f; |
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.IO; | |
using System.Linq; | |
using Android.OS; | |
using Android.Util; | |
namespace DeviceYearClass | |
{ | |
public class DeviceInfo | |
{ |
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
protected async Task<RenderTargetBitmap> CaptureUiElementToStreamAsync(FrameworkElement uiElement, | |
IRandomAccessStream stream) | |
{ | |
return await CaptureUiElementToStreamAsync(uiElement, stream, BitmapEncoder.PngEncoderId); | |
} | |
private async Task<RenderTargetBitmap> CaptureUiElementToStreamAsync(FrameworkElement uiElement, | |
IRandomAccessStream stream, Guid encoderId) | |
{ | |
if (uiElement == null) throw new ArgumentNullException(nameof(uiElement)); |