I hereby claim:
- I am vedantroy on github.
- I am vedantroy (https://keybase.io/vedantroy) on keybase.
- I have a public key ASBIUZWNIPfv0WtR_xCx00YJCZtENcK2nQT4uad5Trg9Awo
To claim this, I am signing this object:
| //#![feature(set_stdio)] | |
| #![feature(integer_atomics, const_fn)] | |
| mod types; | |
| use std::{ | |
| collections::{HashMap, HashSet}, | |
| convert::TryFrom, | |
| fmt::Display, | |
| }; |
| #! /usr/bin/env python3 | |
| class Atom: | |
| def __init__(self, typ, val): | |
| self.typ = typ | |
| self.val = val | |
| def __repr__(self): | |
| r = None | |
| if self.typ == "string": |
| macro_rules! expected_variants_join { | |
| ($x:ident) => (stringify!($x)); | |
| ($x:ident, $($y:ident),*) => { concat!(stringify!($x), " ", expected_variants!($($y),*)) }; | |
| } | |
| macro_rules! expected_variants { | |
| ($x:ident) => { concat!("Expected: ", stringify!($x)) }; | |
| ($x:ident, $($y:ident),*) => { concat!("Expected one of: ", stringify!($x), " ", expected_variants_join!($($y),*)) }; | |
| } |
I hereby claim:
To claim this, I am signing this object:
| #! /usr/bin/env python3 | |
| import os | |
| import sys | |
| import time | |
| import datetime | |
| import json | |
| from enum import Enum |
| const execSync = require("child_process").execSync; | |
| const fs = require("fs") | |
| const crypto = require("crypto") | |
| const assert = require("assert") | |
| function assertNewJsEqOldRust(doc) { | |
| const bytes = Buffer.from(Automerge.save(doc)).toString("base64") | |
| const tempFileName = `changes-${crypto.randomBytes(4).readUInt32LE(0)}.json` | |
| const outFile = `/tmp/${tempFileName}` | |
| //console.log(`Writing to: ${outFile}`) |
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <style> | |
| * { margin:0; padding:0; box-sizing:border-box; } | |
| body { | |
| width: 100%; | |
| height: 100%; | |
| } |
| use anchor_lang::prelude::*; | |
| declare_id!("Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"); | |
| #[program] | |
| pub mod auction { | |
| use super::*; | |
| pub fn create_game_state(ctx: Context<CreateGameState>) -> ProgramResult { | |
| Ok(()) | |
| } |
| #! /usr/bin/python3 | |
| import sys | |
| import os.path | |
| fpath = sys.argv[1] | |
| assert os.path.isfile(fpath) | |
| abs_path = os.path.abspath(fpath) | |
| dirname = os.path.dirname(abs_path) | |
| fname = os.path.basename(abs_path) |
| import React from "react"; | |
| import { fromPairs } from "lodash-es"; | |
| import clsx from "clsx"; | |
| // This is my styled-components replacement | |
| // Taken from: | |
| // https://github.com/MathiasGilson/Tailwind-Styled-Component/blob/master/src/domElements.ts | |
| const elementsArray: (keyof JSX.IntrinsicElements)[] = [ | |
| "a", | |
| "abbr", |