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
#include <Unknwn.h> | |
#include <winrt/Windows.Foundation.h> | |
using namespace winrt; | |
using namespace Windows::Foundation; | |
static constexpr GUID server_clsid // DAA16D7F-EF66-4FC9-B6F2-3E5B6D924576 | |
{ | |
0xdaa16d7f, 0xef66, 0x4fc9, { 0xb6, 0xf2, 0x3e, 0x5b, 0x6d, 0x92, 0x45, 0x76 } | |
}; |
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
#include <Unknwn.h> | |
#include <winrt/Windows.Foundation.h> | |
using namespace winrt; | |
using namespace Windows::Foundation; | |
struct Stringable : implements<Stringable, IStringable> | |
{ | |
hstring ToString() | |
{ |
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.Globalization; | |
using System.IO; | |
using System.Text; | |
using System.Threading; | |
namespace HighResolutionTimer | |
{ |
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
package com.example.android.bluetoothleadvertiser; | |
import android.bluetooth.BluetoothAdapter; | |
import android.bluetooth.BluetoothDevice; | |
import android.bluetooth.BluetoothGatt; | |
import android.bluetooth.BluetoothGattCharacteristic; | |
import android.bluetooth.BluetoothGattDescriptor; | |
import android.bluetooth.BluetoothGattServer; | |
import android.bluetooth.BluetoothGattServerCallback; | |
import android.bluetooth.BluetoothGattService; |
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 customelement = require('./customelement'); | |
export class MyElement extends customelement.CustomHTMLElement { | |
public myTest() { | |
// "this" is fully qualified, includes all methods e.g. addEventListener, dispatchEvent | |
console.log("this", this); | |
console.dir(this); | |
} | |
} |
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
#Requires -Version 3 | |
#Requires -RunAsAdministrator | |
function Get-VMConsole | |
{ | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory)] | |
[string] $VMName | |
) |
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
#!/bin/bash | |
# If this doesn't work, ensure you have UNIX line endings in this file | |
# (\n, not \r\n.) You can use Notepad++ to switch them. | |
# Cygwin package requirements: gcc-mingw, pkg-config | |
# If you want to pass -z to mkbundle: mingw-zlib1, mingw-zlib-devel | |
# crash immediately if anything bad happens | |
set -o errexit | |
set -o nounset |