This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lib/generators/magnitude_generator.rb | |
class MagnitudeGenerator < Rails::Generators::Base | |
source_root File.expand_path('templates', __dir__) | |
desc "Installs Magnitude.run integration with Minitest DSL, helper, and example test" | |
def create_script_builder | |
template "script_builder.rb", "lib/magnitude/script_builder.rb" | |
end | |
def create_magnitude_helper |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |