Settings schema - https://github.com/microsoft/terminal/blob/master/doc/cascadia/SettingsSchema.md
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
# instead of specifying all chores that need to be reset, this can find any input_boolean that is prefixed with 'chore_' to turn off | |
alias: Reset Chores | |
description: "" | |
trigger: | |
- platform: time | |
at: "01:00:00" | |
condition: [] | |
action: | |
- service: homeassistant.turn_off |
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
# Modified from examples found here: https://community.home-assistant.io/t/wled-script-to-alternate-between-effects-every-5-minutes/227553/39 | |
# List of all effects: https://github.com/Aircoookie/WLED/wiki/List-of-effects-and-palettes | |
alias: WLED Cycle Random Effects | |
description: Sets WLED to random effect from list on interval while WLED remains on. | |
trigger: | |
- platform: device | |
type: turned_on | |
device_id: 94b3087d775f6f1a48286fc1e0230d6a # update to match device_id | |
entity_id: light.wled # update to match entity_id | |
domain: light |
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
// This file was initially generated by Windows Terminal (Preview) 1.0.1402.0 | |
// It should still be usable in newer versions, but newer versions might have additional | |
// settings, help text, or changes that you will not see unless you clear this file | |
// and let us generate a new one for you. | |
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", |
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
# Self-elevate the script if required | |
if (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) { | |
if ([int](Get-CimInstance -Class Win32_OperatingSystem | Select-Object -ExpandProperty BuildNumber) -ge 6000) { | |
$CommandLine = "-File `"" + $MyInvocation.MyCommand.Path + "`" " + $MyInvocation.UnboundArguments | |
Start-Process -FilePath PowerShell.exe -Verb Runas -ArgumentList $CommandLine | |
Exit | |
} | |
} | |
# TODO stuff |
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
# editorconfig.org | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
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
<# | |
AssociateHybridConnections | |
#> | |
param | |
( | |
[string] $webAppName, | |
[string] $relayName, | |
[string] $region, | |
[string] $webAppResourceGroup, |
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
var array1 = [1,2,3]; | |
var array2 = [1,2,3]; | |
var isJavaScriptCrazy = true; | |
if (array1 === array2 || array1 == array2) { | |
isJavaScriptCrazy = false; | |
} | |
if (isJavaScriptCrazy) { | |
console.log('Indeed...'); | |
} |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta charset="UTF-8"> | |
<title>UI5 JSBin Template</title> | |
<script id="sap-ui-bootstrap" | |
src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js" |
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.Linq; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Web.Http.Hosting; | |
namespace OData_v3_Demo.Helpers | |
{ | |
/// <summary> | |
/// Built with assistance from https://gist.github.com/raghuramn/5556691#file-dollarformathandler-cs-L42 |