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
trait TreeNode<T> { | |
type RefType: AsRef<Self> + Deref<Target = Self>; | |
fn value(&self) -> T; | |
fn children(&self) -> &[Self::RefType]; | |
} |
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
$ yarn add screenres | |
yarn add v1.22.10 | |
[1/5] Validating package.json... | |
[2/5] Resolving packages... | |
[3/5] Fetching packages... | |
[4/5] Linking dependencies... | |
[5/5] Building fresh packages... | |
error ...\node_modules\screenres: Command failed. | |
Exit code: 1 | |
Command: node-gyp rebuild |
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
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
usage() { | |
cat <<EOF |
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
fn clear_terminal() { | |
print!("{esc}[2J{esc}[1;1H", esc = 27 as char); | |
} |
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
Private Type GUID_TYPE | |
Data1 As Long | |
Data2 As Integer | |
Data3 As Integer | |
Data4(7) As Byte | |
End Type | |
Private Declare PtrSafe Function CoCreateGuid Lib "ole32.dll" (Guid As GUID_TYPE) As LongPtr | |
Private Declare PtrSafe Function StringFromGUID2 Lib "ole32.dll" (Guid As GUID_TYPE, ByVal lpStrGuid As LongPtr, ByVal cbMax As Long) As LongPtr |
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
#load ".fake/build.fsx/intellisense.fsx" | |
open Fake.Core | |
open Fake.DotNet | |
open Fake.IO | |
open Fake.IO.Globbing.Operators | |
open Fake.IO.FileSystemOperators | |
open Fake.Core.TargetOperators | |
// Params ===================================================================== |
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
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location); |
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
git log –pretty=oneline –-abbrev-commit | head –n 5 |