Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am xmeta on github.
  • I am x_meta (https://keybase.io/x_meta) on keybase.
  • I have a public key whose fingerprint is 1B04 8B40 1931 3E3D FAD7 97CF 1BA9 CC37 D112 8A3A

To claim this, I am signing this object:

enum Color {
case Red, Green, Blue, Rgb(r: Int, g: Int, b: Int)
}
func to_hex(color: Color) -> String {
switch color {
case .Red:
return "#FF0000"
case .Green:
return "#00FF00"
enum Color {
red
blue
green
}
struct Rgb{
r int
g int
b int
}
@xmeta
xmeta / test.html
Last active October 27, 2019 06:22
<!DOCTYPE html>
<html lang="en">
<title>Test</title>
<script>
<!-- This line is a comment :)
alert("Hello"); // This line is not a comment!
--> /** This line is a comment :)
alert("World"); // This line is not a comment!
<!--
alert("!!"); // This line is not a comment!
abstract class Color() of Red | Green | Blue | Rgb {}
class Red() extends Color() {}
class Green() extends Color() {}
class Blue() extends Color() {}
class Rgb(r, g, b) extends Color() {
shared Integer r;
shared Integer g;
shared Integer b;
}
@xmeta
xmeta / coincheck chat request
Created February 9, 2017 09:10
coincheck chat
:authority:coincheck.com
:method:POST
:path:/chats
:scheme:https
accept:application/json, text/plain, */*
accept-encoding:gzip, deflate, br
accept-language:ja,en-US;q=0.8,en;q=0.6
cache-control:no-cache
content-length:26
content-type:application/json;charset=UTF-8
<!DOCTYPE html><html class=''>
<head>
<script src='https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/0.7.22/webcomponents-lite.min.js'></script>
<meta charset='UTF-8'>
<meta name="robots" content="noindex">
</head><body>
<script>
@xmeta
xmeta / onename-com
Last active October 23, 2016 10:53
Verifying that "x_meta.id" is my Blockstack ID. https://onename.com/x_meta
console.log("load: test.js");