aspe:keyoxide.org:BJCHTILNEZH6SDDXQADJQTIANU
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
| export type Enum<T extends string[] | number[]> = T[number]; | |
| export type EnumAccess<E extends string> = { [K in E]: K }; | |
| export type EnumGuard<E> = (value: unknown) => value is E; | |
| /** | |
| * Create an enum using string literal unions. | |
| * | |
| * // Option 1: | |
| * | |
| * const [Values, Value, isValue] = Enum('a', 'b', 'c'); |
I hereby claim:
- I am forty on github.
- I am forty (https://keybase.io/forty) on keybase.
- I have a public key whose fingerprint is 3DFD 7CB6 C4C0 9326 67C7 2689 A2F4 D95F 0504 AC5F
To claim this, I am signing this object:
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am forty on github. | |
| * I am forty (https://keybase.io/forty) on keybase. | |
| * I have a public key whose fingerprint is AE45 DA55 C93E 5F77 7DCA 217E 4C89 9D80 385F 69BD | |
| To claim this, I am signing this object: |
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
| import im.scala.xmlstream.views.EndElementView; | |
| import im.scala.xmlstream.views.StartElementView; | |
| import java.io.BufferedWriter; | |
| import java.io.OutputStreamWriter; | |
| import java.net.InetSocketAddress; | |
| import java.net.Socket; | |
| import java.util.concurrent.Executors; | |
| import org.jboss.netty.bootstrap.ServerBootstrap; |