Skip to content

Instantly share code, notes, and snippets.

View MarwanRefaat's full-sized avatar
🕹️
Building GameFi!

Marwan Refaat MarwanRefaat

🕹️
Building GameFi!
View GitHub Profile
@MarwanRefaat
MarwanRefaat / FileName-svg.tsx
Created April 27, 2022 16:40
Hack for Exporting Non-TypeScript File Type
/*
# Original `FileName.svg` Code (Vector Format)
```svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15">
<g fill="none" fill-rule="evenodd" stroke="#191919" stroke-width="2" transform="translate(1 1)">
<path stroke-linecap="round" stroke-linejoin="round" d="M8.5 8.5l4.031 4.031"/>
<circle cx="5" cy="5" r="5"/>
</g>
</svg>
```
@MarwanRefaat
MarwanRefaat / plaid-institutions-massive-array.json
Last active March 22, 2022 00:59
plaid-institutions-massive-array.json
This file has been truncated, but you can view the full file.
[
{
"auth_metadata": {
"supported_methods": {
"automated_micro_deposits": true,
"instant_auth": true,
"instant_match": true
}
},
"country_codes": ["US"],
@MarwanRefaat
MarwanRefaat / merged-plaid-responses.json
Last active March 19, 2022 03:25
Merged Plaid Responses
{
"plaid": {
"access_token": "access-sandbox-55db5cf7-b06b-4cf0-8aac-8c8bfcc5c21b",
"plaid_link": {
"processor_token": "processor-sandbox-757f320c-c8f8-4df8-a5d1-8e8daa5358de",
"link_token": "link-sandbox-b4bad6f6-6990-4427-a7cb-f3f03ee03359",
"available_products": [
"assets",
"balance",
"credit_details",
@MarwanRefaat
MarwanRefaat / mega-plaid-endpoint.json
Last active March 18, 2022 23:38
Mega Plaid Endpoint
{
"link_token_create_response": {
"expiration": "2022-03-19T01:57:09Z",
"link_token": "link-sandbox-b4bad6f6-6990-4427-a7cb-f3f03ee03359",
"request_id": "7uQxBS57jjZbnWN"
},
"link_token_get_response": {
"created_at": "2022-03-18T22:02:57Z",
"expiration": "2022-03-19T02:02:58Z",
"link_token": "link-sandbox-8c22d145-0acc-4717-8016-7550b48fefb9",
@MarwanRefaat
MarwanRefaat / acorns-index.tsx
Created March 18, 2022 14:07
acorns-index.tsx
import React from 'react'
import { QueryResult, graphql } from 'react-apollo'
import { RouteComponentProps, withRouter } from 'react-router-dom'
import { AcornsIcon } from '@acorns/icons'
import {
ConfirmationModal,
ModalAction,
ModalActionTypes,
Spinner,
@MarwanRefaat
MarwanRefaat / revolut-openapi.json
Created March 15, 2022 17:51
revolut-openapi.json
{
"openapi": "3.0.0",
"info": {
"title": "Open Banking API",
"description": "The Revolut Open Banking API is the gateway for third-party providers to interact with Revolut customers and products. \n\nYou can take advantage of the Open Banking API to build your banking applications whether you are \n- A regulated third party provider that wants to get account and transaction information of Revolut customers and initiate different types of payments, or \n- An innovative service provider that is looking to seamlessly integrate Revolut functions into your own applications.\n\nTo get started using the Open Banking API, check the [user guide](https://developer.revolut.com/docs/build-banking-apps/#get-started).\n\n# Authentication\n\n<!-- ReDoc-Inject: <security-definitions> -->",
"version": "v3.1.0"
},
"paths": {
"/account-access-consents": {
"post": {
@MarwanRefaat
MarwanRefaat / gamefi-sila-postman.json
Last active March 11, 2022 14:28
GameFi Sila Postman
{
"info": {
"_postman_id": "cac930ac-dc8f-4640-87ec-9b802a5cd6e0",
"name": "Sila API v0.2 - Local Signer Server Edition",
"description": "These endpoints are designed to work with our lightweight local proxy server. The local server signs and forwards requests to the main API host.\n\nAuthentication of requests made to the main API host is performed using ETH signatures. For more information, visit our docs at https://docs.silamoney.com/docs/process-overview.\n",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Entities",
@MarwanRefaat
MarwanRefaat / PlaidTransactions-JSON-Schema-to-TypeScript.tsx
Created March 11, 2022 10:06
Plaid Transactions JSON Schema to TypeScript
JSON SCHEMA:
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$ref": "#/definitions/Welcome",
"definitions": {
"Welcome": {
"type": "object",
"additionalProperties": false,
"properties": {
"accounts": {
@MarwanRefaat
MarwanRefaat / gamefi-plaid-openapi-v3-1-0.yaml
Created March 7, 2022 12:28
GameFi Plaid OpenAPI v3.1.0 (YAML)
openapi: 3.1.0
info:
title: GameFi Plaid OpenAPI
description: The GameFi Plaid REST API is used to connect to user's bank accounts and get their transaction history as well as integrate with third-party services for money transfer.
contact:
name: GameFi Engineering
url: "https://engineering.gamefi.com"
email: engineering@gamefi.com
version: 2020-09-14_1.64.13
termsOfService: "https://gamefi.com/terms"
@MarwanRefaat
MarwanRefaat / gamefi-plaid-openapi-uml.puml
Last active March 7, 2022 14:21
GameFi Plaid OpenAPI PlantUML
@startuml
title GameFi Plaid OpenAPI Schemas Diagram
entity ErrorType {
}
entity PaymentChannel {
}