🕵️♂️
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
// https://github.com/samber/do/issues/30#issuecomment-1705616069 | |
// https://play.golang.org/p/yHLzoV9To_5 | |
package main | |
import ( | |
"errors" | |
"fmt" | |
"sync" | |
) |
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 main | |
import ( | |
"fmt" | |
) | |
type Empty interface { | |
IsEmpty() bool, error | |
} | |
type Config interface { |
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 is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit |
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 main | |
import ( | |
"testing" | |
"github.com/go-gl/mathgl/mgl32" | |
"github.com/kvartborg/vector" | |
"github.com/ungerik/go3d/vec2" | |
"gonum.org/v1/gonum/mat" | |
) |
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
Invoke-Expression (&starship init powershell) | |
Import-Module HistoryPx | |
function xx( | |
[Parameter(Position = 0, ValueFromPipeline = $true)]$1, | |
[Parameter(Position = 1, ValueFromRemainingArguments = $true, ValueFromPipeline = $true)]$2 | |
) { | |
function x( | |
[Parameter(Position = 0, ValueFromPipeline = $true)]$3, | |
[Parameter(Position = 1, ValueFromRemainingArguments = $true, ValueFromPipeline = $true)]$4 | |
) { |
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 config | |
import ( | |
"errors" | |
"fmt" | |
"os" | |
"reflect" | |
"strconv" | |
"strings" |
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
Set-StrictMode -Version Latest | |
$PSNativeCommandUseErrorActionPreference = $true | |
if ($PSNativeCommandUseErrorActionPreference) { | |
# always true, this is a linter workaround | |
$ErrorActionPreference = "Stop" | |
$PSDefaultParameterValues['*:ErrorAction'] = 'Stop' | |
# sometimes you might need to update these to unicode or another format. | |
# unicode is the only normal one that stays the same between powershell 5 and pwsh core. |
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
Set-StrictMode -Version Latest | |
$PSNativeCommandUseErrorActionPreference = $true | |
if ($PSNativeCommandUseErrorActionPreference) { | |
$ErrorActionPreference = "Stop" | |
$PSDefaultParameterValues['*:ErrorAction'] = 'Stop' | |
$PSDefaultParameterValues['Out-File:Encoding'] = 'utf8' | |
$PSDefaultParameterValues['*:Encoding'] = 'utf8' | |
$utf8 = New-Object System.Text.UTF8Encoding($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
Set-StrictMode -Version Latest | |
$PSNativeCommandUseErrorActionPreference = $true | |
if ($PSNativeCommandUseErrorActionPreference) { | |
# always true, this is a linter workaround | |
$ErrorActionPreference = "Stop" | |
$PSDefaultParameterValues['*:ErrorAction'] = 'Stop' | |
# sometimes you might need to update these to unicode or another format. | |
# unicode is the only normal one that stays the same between powershell 5 and pwsh core. |
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
sudo mkdir -p /etc/apt/keyrings | |
curl -fsSL https://repo.charm.sh/apt/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/charm.gpg | |
echo "deb [signed-by=/etc/apt/keyrings/charm.gpg] https://repo.charm.sh/apt/ * *" | sudo tee /etc/apt/sources.list.d/charm.list | |
sudo apt update && sudo apt install charm |