Skip to content

Instantly share code, notes, and snippets.

View ChinonsoIke's full-sized avatar
🎯
Focusing

Chinonso Ikewelugo ChinonsoIke

🎯
Focusing
View GitHub Profile
@ChinonsoIke
ChinonsoIke / Program.cs
Last active December 29, 2022 11:36
An algorithm to print a Christmas tree to the console
using System;
using System.Threading;
using System.Text;
public class Program
{
public static void Main()
{
PrintChristmasTree(20);
}
@ChinonsoIke
ChinonsoIke / RomanToInt.cs
Last active November 9, 2022 15:33
This algorithm converts Roman numerals to a numeric decimal integer
using System.Collections.Generic;
public class RomanToInt
{
public static int Decode(string roman)
{
var dict = new Dictionary<char,int>(){
{'M',1000},
{'D',500},
{'C',100},
@ChinonsoIke
ChinonsoIke / Button.jsx
Created November 7, 2022 00:56
Button Atom
import styled from "styled-components";
export const CustomButton = styled.button`
background: ${({bg}) => bg || '#FDCA40'};
color: ${({textColor}) => textColor || '#2A2A2A'};
padding: 0.5rem 1rem;
border: none;
font-size: 1rem;
align-self: flex-start;
cursor: pointer;