This file contains hidden or 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
extends Node | |
# Based on this tweet by Clay John: | |
# https://twitter.com/john_clayjohn/status/1306447928932753408 | |
func _ready() -> void: | |
# Create a local rendering device. | |
var rd := RenderingServer.create_local_rendering_device() | |
This file contains hidden or 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.Linq; | |
using Microsoft.Xna.Framework; | |
using Microsoft.Xna.Framework.Graphics; | |
using SharpFont; | |
namespace MonoFont | |
{ |
This file contains hidden or 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
#region MIT License | |
/*Copyright (c) 2016 Robert Rouhani <[email protected]> | |
SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
of the Software, and to permit persons to whom the Software is furnished to do |
This file contains hidden or 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
([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator") |
This file contains hidden or 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
local ffi = package.preload.ffi() | |
if(ffi.os == "Windows") then | |
-- definitions | |
ffi.cdef([[ | |
typedef unsigned int LONG; | |
typedef long long LONG_PTR; | |
typedef void* PVOID; | |
typedef PVOID HANDLE; |
This file contains hidden or 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
Battery Saver | |
ms-settings:batterysaver | |
Battery Saver Settings | |
ms-settings:batterysaver-settings | |
Battery use | |
ms-settings:batterysaver-usagedetails | |
Bluetooth | |
ms-settings:bluetooth | |
Colors |
This file contains hidden or 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
@if "%VS140COMNTOOLS%"=="" goto error_no_VS140COMNTOOLSDIR | |
@call "%VS140COMNTOOLS%VsDevCmd.bat" | |
MSBuild path/to/projectfile /p:Configuration=Release;Platform=x86;AppxBundle=Never;BuildAppxUploadPackageForUap=true;OutDir="path/for/output" | |
@goto end | |
:error_no_VS140COMNTOOLSDIR | |
echo "no vs dir found!" |
This file contains hidden or 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
var httpBaseProtocolFilter = new HttpBaseProtocolFilter(); | |
httpBaseProtocolFilter.CookieManager.SetCookie(httpCookie); |
This file contains hidden or 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
ContactPicker pickcer = new ContactPicker(); | |
pickcer.DesiredFieldsWithContactFieldType.Add(ContactFieldType.PhoneNumber); | |
pickcer.SelectionMode = ContactSelectionMode.Fields; | |
var contact = await pickcer.PickContactAsync(); |
This file contains hidden or 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
// maybe not exist this | |
if (ApiInformation.IsTypePresent("Windows.Phone.Devices.Notification.VibrationDevice")) | |
{ | |
var vibrateDevice = Windows.Phone.Devices.Notification.VibrationDevice.GetDefault(); | |
var duration = TimeSpan.FromMilliseconds(1000); | |
vibrateDevice.Vibrate(duration); | |
} |
NewerOlder