Skip to content

Instantly share code, notes, and snippets.

View macro6461's full-sized avatar
🏠
WFH

Matthew Croak macro6461

🏠
WFH
View GitHub Profile
@macro6461
macro6461 / pre-commit
Created December 5, 2024 16:38
The pre-commit git hook python code for queuejs-bfs
#!/usr/bin/env python3
import sys
import json
import re
import subprocess
def get_git_version():
try:
result = subprocess.run(['git', 'describe', '--long', '--tags'], check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
@macro6461
macro6461 / HouseContainer.tsx
Last active April 2, 2025 17:22
This is a React Native component with child component to render a nested list of places within a place
import React, { useEffect, useState } from "react";
import { View, Text, FlatList, StyleSheet } from "react-native";
// Data Structure
interface Place {
id: string;
object_type: string;
name: string;
parent_place: string | null;
traps_count: number;