Skip to content

Instantly share code, notes, and snippets.

View Guestman360's full-sized avatar
👺
I might be coding

Matthew Guest Guestman360

👺
I might be coding
View GitHub Profile
@Guestman360
Guestman360 / create-zip-with-base64.ts
Created May 29, 2023 18:49
Code snippet for zipping and converting to base64
import fs from 'fs';
import * as path from 'path';
import shell from 'shelljs';
export const createZipWithBase64 = (user_id: string, code: string): string => {
fs.writeFileSync(`${path.join(__dirname, '/cpp/additional_files/main.cpp')}`, code);
// packaging in a zip archive and encoding in base64
shell.exec('base64 -v');
shell.exec('base64 --help');
@Guestman360
Guestman360 / max_points.py
Last active June 28, 2020 21:50
Max Points on a Line
def maxPoints(self, points):
N = len(points)
result = 0
for i in range(N):
lines = collections.defaultdict(int)
duplicates = 1
for j in range(i + 1, N):
# Handle Duplicates
if points[i][0] == points[j][0] and points[i][1] == points[j][1]:
duplicates += 1
@Guestman360
Guestman360 / microsoft-leap-resume
Created May 31, 2018 06:23
My resume for the Microsoft LEAP program detailing my skills and experiences
Matt Guest
============
Profile
----------
I strive to be an asset on any team. I'm a supportive and enthusiastic team-player who prioritizes clear communication, as well as streamlining processes to effectively tackle and conquer project issues. I always take ownership of critical project features.
Education
---------
@Guestman360
Guestman360 / resume.md
Last active August 15, 2017 22:06
My Resume For Microsoft LEAP Program

Matthew Guest

Bellevue, WA | (360) 561 - 0415 | mguest55@yahoo.com | GitHub.com/Guestman360

Education

2016-2017: BA, Economics - University of Washington Tacoma, Tacoma, Wa

Experience