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:
#! /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) |
use anchor_lang::prelude::*; | |
declare_id!("Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"); | |
#[program] | |
pub mod auction { | |
use super::*; | |
pub fn create_game_state(ctx: Context<CreateGameState>) -> ProgramResult { | |
Ok(()) | |
} |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<style> | |
* { margin:0; padding:0; box-sizing:border-box; } | |
body { | |
width: 100%; | |
height: 100%; | |
} |
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}`) |
#! /usr/bin/env python3 | |
import os | |
import sys | |
import time | |
import datetime | |
import json | |
from enum import Enum |
I hereby claim:
To claim this, I am signing this object:
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),*)) }; | |
} |
#! /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": |
//#![feature(set_stdio)] | |
#![feature(integer_atomics, const_fn)] | |
mod types; | |
use std::{ | |
collections::{HashMap, HashSet}, | |
convert::TryFrom, | |
fmt::Display, | |
}; |
# Thank you code_nomad: http://9m.no/ꪯ鵞 | |
# and Arch Wiki contributors: https://wiki.archlinux.org/index.php/Compton | |
################################# | |
# | |
# Backend | |
# | |
################################# | |
# Backend to use: "xrender" or "glx". |