Skip to content

Instantly share code, notes, and snippets.

View adenta's full-sized avatar

Andrew Denta adenta

View GitHub Profile
import { test, expect } from '@playwright/test';
import crypto from "node:crypto"
const anthemDownload = (username, password) => {
test('Anthem Download', async ({ page }) => {
await page.goto('https://brokerportal.anthem.com/apps/ptb/login');
await page.getByPlaceholder('Enter your username').click();
await page.getByPlaceholder('Enter your username').fill(username);
await page.getByPlaceholder('Enter your password').click();
await page.getByPlaceholder('Enter your password').fill(password);
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