Skip to content

Instantly share code, notes, and snippets.

View AdabanyaChinedu's full-sized avatar

Adabanya Chinedu AdabanyaChinedu

View GitHub Profile
@AdabanyaChinedu
AdabanyaChinedu / ComputeScore.cs
Last active January 11, 2024 00:39
Total Score Solution
static int ComputeScore(int[] arrOfIntegers)
{
int totalScore = 0;
foreach (int num in arrOfIntegers)
{
if (num % 2 == 0)
{
totalScore += 1;
}
@AdabanyaChinedu
AdabanyaChinedu / mcc.json
Created August 30, 2022 18:24
Stripe Mcc.json - https://stripe.com/docs/connect/setting-mcc#list extracted using react dev tools. Ordered as represented on stripe docs.
[
{
"value": "7623",
"name": "A/C, Refrigeration Repair",
"code": "ac_refrigeration_repair"
},
{
"value": "8931",
"name": "Accounting/Bookkeeping Services",
"code": "accounting_bookkeeping_services"
@AdabanyaChinedu
AdabanyaChinedu / mcc.json
Created August 30, 2022 06:17 — forked from export-mike/mcc.json
Stripe MCC.json - https://stripe.com/docs/connect/setting-mcc collected using pup, jq and some manual replacements.
[{
"code": "ac_refrigeration_repair",
"value": "7623",
"name": "A/C Refrigeration Repair"
},
{
"code": "accounting_bookkeeping_services",
"value": "8931",
"name": "Accounting/Bookkeeping Services"
},
@AdabanyaChinedu
AdabanyaChinedu / deploy-static-site-heroku.md
Created February 21, 2022 22:12 — forked from wh1tney/deploy-static-site-heroku.md
How to deploy a static website to Heroku

Gist

This is a quick tutorial explaining how to get a static website hosted on Heroku.

Why do this?

Heroku hosts apps on the internet, not static websites. To get it to run your static portfolio, personal blog, etc., you need to trick Heroku into thinking your website is a PHP app. This 6-step tutorial will teach you how.

Basic Assumptions

@AdabanyaChinedu
AdabanyaChinedu / API.md
Created December 7, 2018 14:59 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@AdabanyaChinedu
AdabanyaChinedu / git.migrate
Created December 1, 2018 17:34 — forked from niksumeiko/git.migrate
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.