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
using Android; | |
using Android.App; | |
using Android.Content; | |
using Android.Webkit; | |
using Android.OS; | |
[assembly: UsesPermission(Name = Manifest.Permission.AccessFineLocation)] | |
[assembly: UsesPermission(Name = Manifest.Permission.Internet)] | |
namespace WebViewLocation |
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
#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
// 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
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
import java.util.*; | |
public class HangMan { | |
private static String[] words = { | |
"motherboard", "case", "powersupply", "harddrive", "mouse", "keyboard", "peripheral", | |
"graphicscard", "processor", "latency", "ping", "gaming", "resolution", "watercooling", | |
"cache", "memory", "chipset", "intel", "notebook", "desktop", "aliasing" }; | |
public static void main(String[] args) { | |
Random rand = new Random(); |
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
\usepackage{listings} | |
\usepackage{etoolbox} | |
\usepackage{color} | |
\definecolor{base0}{RGB}{131,148,150} | |
\definecolor{base01}{RGB}{88,110,117} | |
\definecolor{base2}{RGB}{238,232,213} | |
\definecolor{sgreen}{RGB}{133,153,0} | |
\definecolor{sblue}{RGB}{38,138,210} | |
\definecolor{scyan}{RGB}{42,161,151} |
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 Android.App; | |
using Android.Content; | |
using Android.Content.PM; | |
using Android.OS; | |
using Android.Widget; | |
namespace Your.Namespace | |
{ | |
[Activity(Label = "Call", LaunchMode = LaunchMode.SingleTop)] | |
[IntentFilter(new[] { Intent.ActionCall, Intent.ActionView }, |