Skip to content

Instantly share code, notes, and snippets.

View hlatimer266's full-sized avatar

Harrison Latimer hlatimer266

  • Angi's
  • Portland, OR
View GitHub Profile
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
using namespace std;
struct entry_node {
string name;
struct entry_node *next;
@hlatimer266
hlatimer266 / main.go
Created November 3, 2021 23:10
7 Segment PoC
package main
import (
"fmt"
"os"
"strconv"
)
func main() {
allRows := [5][10]string{{" - ", " ", "--", "- ", " ", "-", "-", "-", "-"},
@hlatimer266
hlatimer266 / main.go
Created May 11, 2021 17:54
eth transaction hash request
package main
import (
"context"
"encoding/json"
"fmt"
"log"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/ethclient"
node* minValueNode(node* node){
struct node* current = node;
while (current && current->left != NULL)
current = current->left;
return current;
}
node* deleteNodeHelper(struct node* root){
if (root == NULL) return root;
if (root->left == NULL){
from unittest import TestCase
import unittest
from credit_card_validator import credit_card_validator
class TestCredCardNumber(TestCase):
# Bug 3 - Valid card number (Visa) but an intteger : Found via manual test
def test_valid_card_int(self):
ccn = 4113601974804222
/*
** client.c -- a stream socket client demo
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <netdb.h>
@hlatimer266
hlatimer266 / element.cpp
Created December 6, 2019 07:41
linked_list_1 element.cpp
// Element Implementation
#include "element.h"
// Class Methods
// Default constructor
element::element() {
data = nullptr;
next = nullptr;
prev = nullptr;
#!/bin/bash
case $1 in
test)
echo "running test script"
./p4gradingscript $2
;;
*)
echo "compiling files"
gcc -o keygen keygen.c
/******************************
* Developer: Harrison Latimer
*
* Class: CS 344 Fall 2019
*
* Program 3: smallsh
*
* Description: unix shell like
* program that implements 3 unix shell
* like arguments (cd, status, exit)
// list Genevieve Latimer v1.0
#include "list.h"
using namespace std;
list::list()
{
size = 0;
capacity = 1000;
for (int idx = 0; idx < capacity; idx++) data[idx] = std::string("");
}