Skip to content

Instantly share code, notes, and snippets.

View adenta's full-sized avatar

Andrew Denta adenta

View GitHub Profile
import { Box } from "@chakra-ui/react";
import * as React from "react";
const RichTextBox = ({ richText }: { richText: string }) => {
return (
<Box
minHeight="300px"
border="1px"
borderColor="gray.200"
padding="8"
@adenta
adenta / countries_to_regions.rb
Last active May 2, 2018 21:43
mapping EU countries to their respective regions (all data taken from https://unstats.un.org/unsd/methodology/m49#ftnb)
require "CSV"
require "JSON"
@headers = []
@countries = {}
def row_to_hash(row)
hash = {}
@headers.each_with_index do |header, i|
hash[header] = row[i]
end
hash