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 / States and Animations.swift
Last active September 8, 2021 10:35
States and Animations
@State var show = true
.onTapGesture {
self.show.toggle()
}
@MarwanRefaat
MarwanRefaat / style.css
Last active December 2, 2021 00:36
GameFi Update Stylesheet
:root {
--color-primary: #0066ff!important;
--cta-color-bg: #0066ff!important;
--cta-padding: 12px 22px!important;
--cta-border-radius: 10px!important;
--cta-color-text: var(--color-text-light)!important;
--color-text-default: #424b55!important;
--callout-border-radius: 20px!important;
--inline-code-bg-color: rgba(28, 160, 241, 0.1)!important;
--content-width: 1500px!important;
@MarwanRefaat
MarwanRefaat / GET -authorize.js
Last active December 6, 2021 07:33
GET /authorize
// Script uses auth0.js. See Remarks for details.
<script src="https://cdn.auth0.com/js/auth0/9.11/auth0.min.js"></script>
<script type="text/javascript">
// Initialize app
var webAuth = new auth0.WebAuth({
domain: 'gamefi.us.auth0.com',
clientID: 'srre4hfqvA16NoefiPHbTSvApJKBw2gY'
});
// Trigger login with google
@MarwanRefaat
MarwanRefaat / Suggestions-for-Plaid-OpenAPI-Specification.yaml
Last active December 10, 2021 01:24
Linting suggestions and proposed solutions to warnings/errors returned by Spectral running on the Plaid OpenAPI Specification
# OFFICIAL PLAID OPENAPI SPECIFICATION UP TO DATE AS OF DECEMBER 9TH 2021 (SEMVER 1.58.1) WITH MODIFICATIONS AND POTENTIAL SOLUTIONS TO RESOLVE THE WARNINGS AND ERRORS FLAGGED BY SPECTRAL (OPEN-SOURCE JSON/YAML LINTER)
openapi: 3.0.0
servers:
- description: Production
url: 'https://production.plaid.com'
- description: Development
url: 'https://development.plaid.com'
- description: Sandbox
url: 'https://sandbox.plaid.com'
info:
This is a generic TXT sandbox for plaintext
@MarwanRefaat
MarwanRefaat / scratchpad.html
Last active January 10, 2022 14:33
scratchpad.html
<h1>My First Heading</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h1 style="background-color:rgb(255, 99, 71);">...</h1>
<h1 style="background-color:#ff6347;">...</h1>
<h1 style="background-color:hsla(9, 100%, 64%, 20%);border:2px dashed crimson;color:dimGray;">Nice! <!--This is an inline comment--></h1>
<h1 style="background-color:rgba(255, 99, 71, 0.5);">...</h1>
<h1 style="background-color:hsla(9, 100%, 64%, 0.5);">...</h1>
@MarwanRefaat
MarwanRefaat / Plaid-OpenAPI.yaml
Created January 10, 2022 15:02
Plaid OpenAPI
openapi: 3.0.0
servers:
- description: Production
url: https://production.plaid.com
- description: Development
url: https://development.plaid.com
- description: Sandbox
url: https://sandbox.plaid.com
info:
title: The Plaid API
@MarwanRefaat
MarwanRefaat / Plaid-OpenAPI-Postman.json
Created January 10, 2022 15:05
Plaid OpenAPI Postman
{
"info": {
"name": "The Plaid API",
"_postman_id": "96cd13c2-d963-44af-9af7-f666b5eb3fc5",
"description": "The Plaid REST API. Please see https://plaid.com/docs/api for more details.",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"name": "plaid",
@MarwanRefaat
MarwanRefaat / Plaid-Postman.json
Last active January 10, 2022 16:42
Plaid Postman (JSON)
{
"info": {
"_postman_id": "8849e3bd-fc0b-4707-8da2-39a6de7e2185",
"name": "Plaid API Endpoints",
"description": "Documentation for how to use this collection, including a Quickstart guide, is on the [Plaid Postman GitHub README](https://github.com/plaid/plaid-postman).\n\nDetailed documentation for Plaid API endpoints is at the [Plaid API reference guide](https://www.plaid.com/docs/api).\n\nBefore you begin, set your `client_id` and `secret_key` variables in the Sandbox environment. You can find them in your Plaid [dashboard](https://dashboard.plaid.com/account/keys). Set the variables by clicking on the 'eye' icon in the top-right corner of the screen.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Link Tokens",
@MarwanRefaat
MarwanRefaat / Plaid-Postman-Environment.json
Last active January 10, 2022 16:42
Plaid Postman Environment (JSON)
{
"id": "943a1f61-0d83-4156-88f9-92f44a2d24f1",
"name": "Sandbox",
"values": [
{
"key": "client_id",
"value": "5fd43aad1186c30013d6f3e2",
"type": "text",
"enabled": true
},