I hereby claim:
- I am eduardonunesp on github.
- I am eduardonunesp (https://keybase.io/eduardonunesp) on keybase.
- I have a public key whose fingerprint is E672 12E6 1060 2345 3A72 6F98 8A07 DEF0 258F 7829
To claim this, I am signing this object:
import fs from 'fs/promises' | |
import { create, load } from 'ipld-hashmap' | |
import { sha256 as blockHasher } from 'multiformats/hashes/sha2' | |
import * as blockCodec from '@ipld/dag-cbor' // encode blocks using the DAG-CBOR format | |
// A basic in-memory store for mapping CIDs to their encoded Uint8Array blocks | |
const store = { | |
map: new Map(), | |
get (k) { return store.map.get(k.toString()) }, | |
put (k, v) { store.map.set(k.toString(), v) } |
package main | |
import ( | |
"bytes" | |
"fmt" | |
"io" | |
"github.com/davecgh/go-spew/spew" | |
"github.com/ipfs/go-cid" | |
hamt "github.com/ipld/go-ipld-adl-hamt" |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <math.h> | |
#define GRID_SIZE 384 | |
#define GRID_WIDTH 16 | |
#define MAX_PAWNS_IN_GAME 50 | |
typedef struct pawn_s { |
#include <stdio.h> | |
#include <stdlib.h> | |
#define BOARD_SIZE 64 | |
typedef enum { | |
COOL = 1 << 0, | |
GREAT = 1 << 1, | |
} op_type_e; |
I hereby claim:
To claim this, I am signing this object:
use std::fs::File; | |
use std::io::{prelude::*, BufReader, Write}; | |
use std::process::Command; | |
use actix_multipart::Multipart; | |
use actix_web::{ | |
get, http::StatusCode, post, web, App, Error, HttpResponse, HttpServer, Responder, | |
}; | |
use futures::{StreamExt, TryStreamExt}; | |
use tempdir::TempDir; |
#include <stdbool.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <SDL2/SDL.h> | |
#include "pieces.h" | |
#ifdef _DEBUG | |
#define LOG(msg) printf(msg); | |
#define LOGF(fmt, ...) fprintf(stdout, fmt, __VA_ARGS__) |
#include <stdbool.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <SDL2/SDL.h> | |
#ifdef _DEBUG | |
#define LOG(msg) printf(msg); | |
#define LOGF(fmt, ...) fprintf(stdout, fmt, __VA_ARGS__) | |
#else |
const fs = require('fs') | |
const AWS = require('aws-sdk') | |
const FAKE_S3_HOST = process.env.FAKE_S3_HOST || "localhost" | |
const FAKE_S3_PORT = process.env.FAKE_S3_HOST || "localhost" | |
// Create S3 service object using fakes3 | |
const s3 = new AWS.S3({ | |
region: 'us-east-2', | |
secretAccessKey: '123', |
#include <iostream> | |
#include "Vector2.h" | |
int main(int argc, const char * argv[]) { | |
Vector2<float> u {-8, 1}; | |
Vector2<float> v {-2, 7}; | |
std::cout << "Anglen (degrees): " << u.angle(v) * (180/M_PI) << std::endl; | |
return 0; | |
} |