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 / 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:
@ishu3101
ishu3101 / gist_to_github_repo.md
Created November 24, 2015 08:35
Transfer a gist to a GitHub repository

Transfer a gist to a GitHub repository

clone the gist

git clone https://gist.github.com/ishu3101/6fb35afd237e42ef25f9

rename the directory

mv 6fb35afd237e42ef25f9 ConvertTo-Markdown

change the working directory to the newly renamed directory

cd ConvertTo-Markdown

Falsehoods programmers believe about prices

  1. You can store a price in a floating point variable.
  2. All currencies are subdivided in 1/100th units (like US dollar/cents, euro/eurocents etc.).
  3. All currencies are subdivided in decimal units (like dinar/fils)
  4. All currencies currently in circulation are subdivided in decimal units. (to exclude shillings, pennies) (counter-example: MGA)
  5. All currencies are subdivided. (counter-examples: KRW, COP, JPY... Or subdivisions can be deprecated.)
  6. Prices can't have more precision than the smaller sub-unit of the currency. (e.g. gas prices)
  7. For any currency you can have a price of 1. (ZWL)
  8. Every country has its own currency. (EUR is the best example, but also Franc CFA, etc.)