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
package sortutil | |
import ( | |
"constraints" | |
"sort" | |
) | |
// Sort sorts a list of elements by a given list of comparers. | |
func Sort[T any](elems []T, comparers ...SorterComparer[T]) { | |
if len(comparers) == 0 { |
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
#! /bin/sh | |
echo " "; | |
echo " .=*#%%%%%%%%%%#+-. "; | |
echo " :*%@%*=-=*#%##*=-+#%@%+: "; | |
echo " =@@%=. #@@@@@@@@+ :+%@%- "; | |
echo " -%@*. #@@@@@@@@@@= :%@#. "; | |
echo " =@@: :===-.-%@@@@@@@@%::-==-. =@@: .=*#%@@@%#=. *%%%@@@@@@@@@@%%#: .=*#%@@@%#=. -@@@@@*-. -+#%@@@@%*: *%%%- .-+%@@@%####%@@@@%*: " |
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
{ | |
"workbench.colorTheme": "GitHub Dark", | |
"workbench.activityBar.visible": false, | |
"editor.fontSize": 14, | |
"editor.minimap.enabled": false, | |
"editor.lineNumbers": "on", | |
"editor.lightbulb.enabled": false, | |
"editor.wrappingStrategy": "simple", | |
"go.lintTool": "golangci-lint", | |
// indentation defaults |
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
package main | |
import ( | |
"context" | |
"encoding/json" | |
"fmt" | |
"log" | |
"net/http" | |
"net/url" | |
"os" |
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
[Rainmeter] | |
Update=500 | |
AccurateText=1 | |
DynamicWindowSize=1 | |
MiddleMouseDownAction=!Execute [!RefreshApp] | |
[Metadata] | |
Name=SysProm | |
Author=Will Charczuk, based on idk a lot of other themes | |
Version=1.0 |
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
.limit | |
.userInput | |
.temp | |
add 0 8 .limit | |
input .userInput | |
equals &.userInput &.limit .temp | |
jump-if-false &.temp pc(6) | |
print 0 | |
jump-if-false 0 sym(-1) | |
less-than &.userInput &.limit .temp |
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
package main | |
import ( | |
"encoding/csv" | |
"fmt" | |
"io" | |
"log" | |
"os" | |
"strconv" | |
) |
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
{ | |
// editor stuff | |
"editor.formatOnSave": true, | |
"editor.codeLens": false, | |
"editor.autoClosingBrackets": false, | |
"editor.quickSuggestionsDelay": 250, | |
"editor.roundedSelection": false, | |
"editor.fontFamily": "Source Code Pro", | |
"editor.fontSize": 13, | |
"editor.glyphMargin": true, |
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
package main | |
import ( | |
"fmt" | |
"io" | |
"io/ioutil" | |
"net/http" | |
"net/url" | |
"os" | |
"time" |
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
[Unit] | |
Description=etcd | |
Documentation=https://github.com/coreos/etcd | |
Conflicts=etcd.service | |
Conflicts=etcd2.service | |
[Service] | |
Type=notify | |
Restart=always | |
RestartSec=5s |
NewerOlder