Skip to content

Instantly share code, notes, and snippets.

View pmartinez8241's full-sized avatar
🇨🇦
WORKING FOR UNICAL AVIATION

PETE MARTINEZ pmartinez8241

🇨🇦
WORKING FOR UNICAL AVIATION
  • Cal Poly Pomona JAVA TUTOR
  • Walnut CA 91789
View GitHub Profile
@pmartinez8241
pmartinez8241 / slot.pst
Created September 29, 2026 05:11
Sid Meier's Pirates save data (PLAIN TEXT)
This file has been truncated, but you can view the full file.
## Intro starts at byte 0
Intro_0 : t0 : BOOBZ|(Journeyman)|near Campeche|15 May, 1619 :
Intro_1 : V4 : 106 : You are here x
Intro_2 : V4 : 150 : You are here y
Intro_3 : h4 : 00.00.00.64 :
Intro_4 : V4 : 1 : Difficulty (Journeyman)
Intro_5 : V4 : 62 : Last city visited
## CityName starts at byte 69
CityName_0 : t8 : Antigua :
@pmartinez8241
pmartinez8241 / pirates_savegame_editor.pl
Created September 29, 2026 03:56
Sid Meier's Pirates Save Editor
#!/usr/bin/perl -w
# savegame editor for Sid Meier's Pirates by Jack Langsdorf
# You can contact me at jlangsdo on hookedonpirates.com
#
# $Revision: 1.47 $
# $Date: 2012/12/15 13:41:58 $
use strict;
$| = 1;
$ENV{USER} ||= "USER_NOT_DEFINED";
@pmartinez8241
pmartinez8241 / tmdb_movie_data.json
Created September 19, 2025 04:19
TMDB MOVIE DATA
This file has been truncated, but you can view the full file.
{
"Ahsoka": {
"name": "Ahsoka",
"id": 114461,
"show_url": "https://api.themoviedb.org/3/tv/114461",
"seasons": {
"Specials": {
"season_name": "Specials",
"season_number": 0,
@pmartinez8241
pmartinez8241 / LOCAL_MOVIES.json
Last active September 19, 2025 04:16
LOCAL MOVIES LIST
{
"Ahsoka": {
"name": "Ahsoka",
"base_url": "Z:\\Entertainment\\Media\\TV Shows",
"url": "Z:\\Entertainment\\Media\\TV Shows\\Ahsoka",
"seasons": {
"Season 01": {
"season_name": "Season 01",
"season_url": "Z:\\Entertainment\\Media\\TV Shows\\Ahsoka\\Season 01",
"episodes": [
---
title: "google_analytics_cyclistic_case_study"
author: "Pete Martinez"
date: "2024-08-07"
output:
html_document:
toc: true
theme: united
---
library(tidyverse)
library(dplyr)
library(tibble)
library(janitor)
library("lubridate")
library(here)
library(skimr)
library(ggplot2)
#READ CSV FILES
local_tv_location <- "T:\\Media\\TV Shows"
network_tv_location <- r"{Z:\Entertainment\Media\TV Shows/}"
#************* ROOT COUNT ******************
root_local = list()
root_network = list()
root_local_dir = list.dirs(local_tv_location)
for(x in root_local_dir)
{
use gtk::{prelude::*, Orientation};
use gtk::{glib, Application, ApplicationWindow, Widget};
use std::fs;
const APP_ID: &str = "org.gtk_rs.HelloWorld2";
fn main() -> glib::ExitCode {
// Create a new application
let app = Application::builder().application_id(APP_ID).build();
// Connect to "activate" signal of `app`
@pmartinez8241
pmartinez8241 / episode_includes.sql
Created September 14, 2023 05:20
episodes_insert_list
INSERT INTO tv.episodes (name) values (E'Band of Brothers - s01e01 - Currahee.mkv');
INSERT INTO tv.episodes (name) values (E'Band of Brothers - s01e01 - Currahee.srt');
INSERT INTO tv.episodes (name) values (E'Band of Brothers - s01e02 - Day of Days.mkv');
INSERT INTO tv.episodes (name) values (E'Band of Brothers - s01e02 - Day of Days.srt');
INSERT INTO tv.episodes (name) values (E'Band of Brothers - s01e03 - Carentan.mkv');
INSERT INTO tv.episodes (name) values (E'Band of Brothers - s01e03 - Carentan.srt');
INSERT INTO tv.episodes (name) values (E'Band of Brothers - s01e04 - Replacements.mkv');
INSERT INTO tv.episodes (name) values (E'Band of Brothers - s01e04 - Replacements.srt');
INSERT INTO tv.episodes (name) values (E'Band of Brothers - s01e05 - Crossroads.mkv');
INSERT INTO tv.episodes (name) values (E'Band of Brothers - s01e05 - Crossroads.srt');
@pmartinez8241
pmartinez8241 / POSTGRESQL_REFCURSOR_EXAMPLE.py
Last active May 20, 2023 00:02
How to create, then use, a postgres REFCURSOR in postgres
import psycopg2
import json
def get_drives_and_media_type():
results = []
with psycopg2.connect("host=# dbname=entertainment_database user=# password=#") as conn:
with conn.cursor() as db_cursor: