Skip to content

Instantly share code, notes, and snippets.

View bryantee's full-sized avatar
🏠
Working from home

Bryan Swagerty bryantee

🏠
Working from home
View GitHub Profile
@bryantee
bryantee / coding-exercise-solution.tsx
Created November 18, 2025 19:48
FE Interview Coding Exercise Solution
import React, { useEffect, useState } from "react";
type ActivityRange = "CURRENT_SCHOOL_YEAR" | "LAST_30_DAYS";
interface OrgEngagementSummary {
teacherMaterialsAccessed: number;
studentMaterialsAccessed: number;
}
interface OrgEngagementMetricsProps {
@bryantee
bryantee / coding-exercise-problem.tsx
Created November 18, 2025 16:26
FE Interview Coding Exercise
/**
* CODING EXERCISE: Organization Engagement Report
*
* BUGS:
* 1. The engagement summary does not update when the activity range is changed.
* 2. The select component and label are not properly associated for accessibility.
*
* IMPROVEMENTS:
* 1. How could we handle error states in the UI?
* 2. What about loading states?
@bryantee
bryantee / 2025_midyear_goals.md
Last active June 11, 2025 15:31
2025 midyear goals

2025 Goals

2-3 goals with one being focused on AI

Potential Areas for Focus

  • AI
  • Design System
  • Accessibility
  • Analytics
  • Architecture
echo "hello"
{
"compilerOptions": {
"allowJs": false,
"allowSyntheticDefaultImports": true,
"baseUrl": ".",
"esModuleInterop": true,
"experimentalDecorators": true,
"jsx": "react",
"lib": ["es6"],
"module": "commonjs",
interface Foo {
handleSelect(field: string): (newSelected: string) => void;
}
// vs
interface Bar {
handleSelect: (field: string) => (newSelected: string) => void;
}
/*
* Returns array of items de-duped based on primary key field
* ie: id
* */
function removeDuplications<T>(primaryKey: string, items: T[]): T[] {
if (items && items.length === 0) {
return [];
}
if (!items[0].hasOwnProperty(primaryKey)) {
@bryantee
bryantee / test.md
Last active September 20, 2018 18:29
Testing TypeScript support code blocks

TypeScript

  const things: string[] = ['foo', 'bar'];

vs

JavaScript

 const things: string[] = ['foo', 'bar'];
@bryantee
bryantee / app-criteria.md
Last active April 23, 2018 21:42
Tabris Challenge App Criteria

The Tabris 2 Challenge!

Acceptance Criteria

You can use as many APIs and concepts as you would like in your app, but it must contain at least one of each of the following:

@bryantee
bryantee / screenshot.sh
Created March 21, 2018 21:14
Take screenshots and save to you computer from an android device connected via adb
#!/bin/bash
adb shell screencap -p /sdcard/screenshot.png
adb pull /sdcard/screenshot.png
now=$(date +%d:%m-%H.%M.%S)
mv screenshot.png screenshot-${now}.png