Skip to content

Instantly share code, notes, and snippets.

View BunchDevelopment's full-sized avatar
🔥

Brandon Bunch BunchDevelopment

🔥
View GitHub Profile
@BunchDevelopment
BunchDevelopment / parseOutDD
Created February 24, 2023 21:55
parse DDM gps data to DD lat and long
source ='204847.000,2047.1962N,15627.6142W,1.6,6.8,3,0.00,0.0,0.0,240223,04'
def parseOutDD(src):
splitSrc = source.split(',')
return getDD(splitSrc[1], splitSrc[2])
def getDD(ddm1, ddm2):
spl1 = list(ddm1)
ddm1D = int(''.join(spl1[0:2]))
ddm1M = float(''.join(spl1[2:-1]))
@BunchDevelopment
BunchDevelopment / pairing.py
Created July 5, 2022 21:55
A python script used for creating matches from an xlxx file for Virtual Connect Challenge
import pandas as pd
excel_data = pd.read_excel('FileName.xlsx', na_values='N/A')
data = pd.DataFrame(excel_data, columns=['Name', 'Title', 'Email Address', 'Org', 'Site', 'Match Category'])
data["Meeting 1"] = "m1"
data["Meeting 2"] = "m2"
data["Meeting 3"] = "m3"
data["Meeting 4"] = "m4"
data["Meeting 5 (Lead only)"] = "m5"
data["Meeting 6 (Lead only)"] = "m6"
//1000 ms is a maximum allowed value according to requirements
maximumResponseTime = 1000;
//100 is a number of sent requests according to requirements
iterations = 100;
//100 ms is a delay between requests according to requirements
delay = 100;
//responseTimes is an array for collecting response time values
responseTimes = [];
i=0;
function sendRequest() {

Keybase proof

I hereby claim:

  • I am bunchdevelopment on github.
  • I am brandonbunch (https://keybase.io/brandonbunch) on keybase.
  • I have a public key ASCjZ0FRRtqn2bJO6t7JenRIpi9CvoXRc0_J39STAMXfOQo

To claim this, I am signing this object:

import React from "react";
import { render, cleanup, fireEvent, waitForElement, debug } from "@testing-library/react";
import fetchHandler from '../../helpers/utils/fetchHandler'
import SearchBar from "../SearchHeader/SearchBar.js";
import fakeDataSources from "./__mock__/fakeDataSources";
//unmounts all components after testing for clean tree
afterEach(cleanup);
<!DOCTYPE html>
<!-- saved from url=(0036)https://www.sphere.ms/front-end-test -->
<html lang="en-US" class=" no-touch"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Sphere - Simplifying Life</title>
<meta name="description" content="Sphere simplifies your life through automation.">
<meta name="viewport" content="width=device-width, initial-scale=1.0001">
<link rel="icon" type="image/png" href="https://www.sphere.ms/images/icon.png">
<link href="css/screen.css" rel="stylesheet" type="text/css" media="screen">
</head>
// Only executes in mobile
(() => {
// Global vars
const $modal = $("#timeModal");
const $span = $(".close").first();
const $submitTime = $("#submitTime");
// Lauches the Modal