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 ( | |
"flag" | |
"html/template" | |
"log" | |
"net/http" | |
"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
Dead arms detected by running the above script on urbit/urbit tip, against a corpus | |
of ~300k lines of Hoon (including urbit/urbit itself and various community repos): | |
urbit/pkg/autoprop/sur/sole.hoon: | |
+sole-gen | |
urbit/pkg/autoprop/lib/ethereum.hoon: | |
+address-to-checksum | |
+batch-read-request | |
+encode-atoms | |
+light-json-request |
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" | |
) | |
func main() { | |
fmt.Println(renderBNT(19)) | |
} |
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
|= n=@ | |
=< | |
|^ | |
(fib-dec (interp fib-prog (fib-enc n))) | |
++ fib-prog | |
:~ 17^65 | |
133^34 | |
17^19 | |
23^17 | |
2.233^69 |
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
:: Hoonlet | |
:: | |
|= n=@ | |
?: =(n 0) | |
1 | |
(mul n $(n (dec n))) | |
:: | |
:: Commie Hoontard | |
:: (...daydreaming of his very own Type 59...) | |
:: |
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
# ssh config to connect to a host via local network if available. | |
# | |
# For example, if the host is 192.168.1.10 on your local network, | |
# first run ssh-keyscan 192.168.1.10 to see what keys are available, | |
# then substitute that key for your_host_key (-t selects the key type). | |
Match exec "ssh-keyscan -T 1 -t ed25519 local.ip.for.host 2>/dev/null | grep -F your_host_key" host yourhostname | |
Hostname local.ip.for.host | |
Port 22 |
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
#include <stdio.h> | |
#include <stdbool.h> | |
// Maybe | |
typedef struct MaybeInt { | |
int just; | |
bool nothing; | |
} MaybeInt; |
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 ( | |
"bufio" | |
"fmt" | |
"log" | |
"os" | |
"strings" | |
"github.com/NebulousLabs/Sia/modules" |
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 ( | |
"bufio" | |
"fmt" | |
"log" | |
"os" | |
"strconv" | |
"github.com/NebulousLabs/Sia/crypto" |
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
[alias] | |
au = add -u . | |
c = commit -m | |
ca = commit --amend | |
can = commit --amend --no-edit | |
cf = commit --fixup | |
co = checkout | |
cob = checkout -b | |
com = checkout master | |
cp = cherry-pick |
NewerOlder