Skip to content

Instantly share code, notes, and snippets.

View amattu2's full-sized avatar

Alec M amattu2

View GitHub Profile
@amattu2
amattu2 / postman.json
Created February 11, 2023 15:39
This is a WIP Postman and ThunderClient request repository for interacting with the TryFi.com (api.tryfi.com) pet collar API.
{
"info": {
"name": "TryFi",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"description": ""
},
"item": [
{
"name": "Auth",
"item": [
@amattu2
amattu2 / NOTES.txt
Created January 22, 2023 21:24
The goal is to extract insights from the repair data, particularly revolving around repair costs and vehicle mileage.
See https://gist.github.com/amattu2/e4e6be2e6114c2229c8647fa282c1a3a for the dataset
@amattu2
amattu2 / RepairOrder.php
Last active February 6, 2022 15:08
This is a PHP class for generating automotive-type invoices/repair orders. Uses FPDF as the PDF generator.
<?php
/*
* Produced: Fri Jan 07 2022
* Author: Alec M.
* GitHub: https://amattu.com/links/github
* Copyright: (C) 2022 Alec M.
* License: License GNU Affero General Public License v3.0
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
@amattu2
amattu2 / Invoice.php
Created February 6, 2022 14:57
This is a FPDF class for generating a Billable invoice for itemized costs
<?php
/*
* Produced: Fri Jan 07 2022
* Author: Alec M.
* GitHub: https://amattu.com/links/github
* Copyright: (C) 2022 Alec M.
* License: License GNU Affero General Public License v3.0
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
@amattu2
amattu2 / SimpleICS.class.php
Last active March 27, 2023 09:27 — forked from furkanmustafa/SimpleICS.php
A simple ICS (iCalendar) event generator class.
<?php
/*
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@amattu2
amattu2 / Code.gs
Created January 18, 2022 13:54
A very simple Google Apps Script implementation to add pre-configured "Print Regions" to Google Sheets
const PRINT_HEADER = "Generating export...";
const PRINT_OPTS = {
'size': 0,
'fzr': false,
'portrait': false,
'fitw': true,
'gridlines': false,
'printtitle': false,
'sheetnames': false,
'pagenum': 'CENTER',
@amattu2
amattu2 / service-history-listing.html
Last active December 22, 2021 15:40
This is an automotive vehicle service history listing design/template using HTML/CSS. It's designed for use within the scope of an automotive shop management system.
<!--
Produced: Sun Dec 19 2021
Author: Alec M.
GitHub: https://amattu.com/links/github
Copyright: (C) 2021 Alec M.
License: License GNU Affero General Public License v3.0
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
@amattu2
amattu2 / EDA.ipynb
Last active May 26, 2024 13:04
An automotive repair exploratory data analysis Python and Jupyter Notebook project. Relies on proprietary repair data ranging from 2002 to 2021. Partially incomplete
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@amattu2
amattu2 / APIManager.class.php
Created October 24, 2021 16:18
A PHP based API encapsulation boilerplate; Has the basic setup for a class for the API functions, the HTTP request, and the API key.
<?php
/**
* This is a PHP demo/boilerplate for a basic API which relies on a API key.
**/
namespace amattu\api;
/**
* The main API request manager class
@amattu2
amattu2 / offline.html
Created February 4, 2021 21:36
A basic internet connectivity loss notice. Designed to overlay full screen content in the event of a user losing internet connection on your webapp.
<html>
<!-- Alec M., 2021 -->
<head>
<title>Offline Example</title>
<style>
/* Standard Items */
html, body {
margin: 0;
padding: 0;
font-family: sans-serif;