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; | |
namespace ConsoleApplication1.FunctionSuite | |
{ | |
public static class Functions | |
{ | |
public static Func<T1, TResult> FunctionSuite<T1, T2, TResult>(Func<T1, T2> f1, Func<T2, TResult> f2) | |
{ | |
return t1 => | |
{ |
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 Program | |
{ | |
private static void Main(string[] args) | |
{ | |
var machine1 = new UniversalMachine(new[] {'0', '1'}, | |
new[] {"Mov", "B", "Bi", "OK"}, | |
new[] | |
{ | |
"Mov 0 = Mov 0 >", | |
"Mov 1 = Mov 1 >", |
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.Collections.Generic; | |
namespace HouseNumber | |
{ | |
public static class HouseNumber | |
{ | |
private static void Main() | |
{ | |
var fore = Console.ForegroundColor; |
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 NumberOnlyBehaviour | |
{ | |
public static readonly DependencyProperty IsEnabledProperty = | |
DependencyProperty.RegisterAttached("IsEnabled", typeof(bool), | |
typeof(NumberOnlyBehaviour), new UIPropertyMetadata(false, OnValueChanged)); | |
public static bool GetIsEnabled(Control o) | |
{ | |
return (bool)o.GetValue(IsEnabledProperty); | |
} |
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 Sub FormulaToValue() | |
ActiveCell.Formula = ActiveCell.Value | |
End Sub |
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
function backupDisk --argument disk file | |
if sudo dd if=$disk bs=4M conv=fsync status=progress | gzip -v9 | sudo dd of=$file.new | |
mv $file.new $file | |
end | |
end |
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
# run each tick 'execute as @e[] run namespace:detect_moving_entity' | |
# then execute as @e[tag=takeoff] ... | |
# the `flying` tag is present even in `takeoff` and `landing` phases | |
tag @s[tag=flying, tag=landing] remove flying | |
tag @s[tag=landing] remove landing | |
tag @s[tag=flying, tag=!landing, nbt={Motion:[0d,0d,0d], OnGround:true}] add landing | |
tag @s[tag=takeoff] remove takeoff |
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
{ | |
"$schema" : "https://aka.ms/winget-packages.schema.2.0.json", | |
"CreationDate" : "2022-02-07T01:56:18.924-00:00", | |
"Sources" : | |
[ | |
{ | |
"Packages" : | |
[ | |
{ | |
"PackageIdentifier" : "Google.Chrome" |
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
Show hidden characters
{ | |
"folders": [ | |
{ | |
"path": ".\\serverconfig" | |
}, | |
{ | |
"path": "..\\..\\config" | |
}, | |
{ | |
"path": "..\\..\\defaultconfigs" |
OlderNewer