I hereby claim:
- I am darwinsubramaniam on github.
- I am udworld (https://keybase.io/udworld) on keybase.
- I have a public key ASCyKSM2iiSadB5lbh0iaePzUA8JTJuq158pcSwPTxmkrwo
To claim this, I am signing this object:
// Logiops (Linux driver) configuration for Logitech MX Master 3. | |
// Includes gestures, smartshift, DPI. | |
// Tested on logid v0.2.3 - GNOME 3.38.4 on Zorin OS 16 Pro | |
// What's working: | |
// 1. Window snapping using Gesture button (Thumb) | |
// 2. Forward Back Buttons | |
// 3. Top button (Ratchet-Free wheel) | |
// What's not working: | |
// 1. Thumb scroll (H-scroll) | |
// 2. Scroll button |
CREATE EXTENSION IF NOT EXISTS btree_gist; |
export $(grep -v '^#' .env | xargs) |
#[derive( | |
Debug, | |
Copy, | |
Clone, | |
PartialEq, | |
Eq, | |
scale::Encode, | |
scale::Decode, | |
ink_storage::traits::SpreadLayout, | |
ink_storage::traits::PackedLayout, |
let accounts = | |
ink_env::test::default_accounts::<ink_env::DefaultEnvironment>(); | |
assert_eq!(erc20.balance_of(accounts.bob), 0); | |
// Set the contract as callee and Bob as caller. | |
let contract = ink_env::account_id::<ink_env::DefaultEnvironment>(); | |
ink_env::test::set_callee::<ink_env::DefaultEnvironment>(contract); | |
ink_env::test::set_caller::<ink_env::DefaultEnvironment>(accounts.bob); |
// Adding this line | |
type Result<T> = std::result::Result<T, Box<dyn std::error::Error + Send + Sync>>; | |
// as the example | |
async main() -> Result<int> { | |
let mut args = std::env::args(); | |
let _ = args.next(); | |
let path = args.next().expect("missing path argument"); |
I hereby claim:
To claim this, I am signing this object:
[package] | |
name = "EnclaveApp" | |
version = "0.0.1" | |
authors = ["jasl"] | |
edition = "2018" | |
resolver = "2" | |
[lib] | |
name = "enclaveapp" | |
crate-type = ["staticlib"] |
I hereby claim:
To claim this, I am signing this object:
import { mkdir, open, writeFile} from 'fs/promises'; | |
import { existsSync } from 'fs'; | |
var dir = './asset'; | |
async function start() { | |
if (!existsSync(dir)) { | |
await mkdir(dir); | |
} |