Skip to content

Instantly share code, notes, and snippets.

View jessefreeman's full-sized avatar

Jesse Freeman jessefreeman

View GitHub Profile
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace PixelVision8
{
public static class StringExtension
@jessefreeman
jessefreeman / cu-bleching-pots-script.txt
Last active March 19, 2023 14:38
ChatGPT generated Captain Underpants cartoon script
Title: Captain Underpants and the Takedown of the Belching Bots
NARRATOR
Chapter 1: A Boring Day in Science Class.
In the bustling hallways of Jerome Horwitz Elementary School, best friends George Beard and Harold Hutchins were bored out of their minds during Mr. Fyde's dull science class.
INT. JEROME HORWITZ ELEMENTARY SCHOOL - SCIENCE CLASSROOM - DAY
George and Harold are sitting at a desk, doodling in a notebook. The title of their comic reads, "Captain Underpants and the Takedown of the Belching Bots."
@jessefreeman
jessefreeman / display-example.lua
Last active July 8, 2020 17:38
A simple Pixel Vision 8 code example to visualize the over scan gutter.
--[[
Pixel Vision 8 - Display Example
Copyright (C) 2017, Pixel Vision 8 (http://pixelvision8.com)
Created by Jesse Freeman (@jessefreeman)
Learn more about making Pixel Vision 8 games at
https://www.pixelvision8.com/getting-started
]]--
-- Create a canvas to visualize the screen sizes
local canvas = NewCanvas(256, 240)
@jessefreeman
jessefreeman / top-medium-publications.csv
Last active July 5, 2020 12:59
A list of medium publications I would like to be an author on.
Name Author Followers Submission Link
The Startup Y 597k https://medium.com/swlh/when-one-upvote-is-worth-a-thousand-visitors-3e8ed27bcd3e
Better Humans N 377k https://medium.com/better-humans/write-for-better-humans-4c6c9884fc08
Towards Data Science Y 364k https://towardsdatascience.com/contribute/home
UX Collective Y 336k https://uxdesign.cc/why-and-how-to-publish-with-the-ux-collective-8c8d1dd018a7
The Writing Cooperative Y 190k https://writingcooperative.com/the-writing-cooperative-submission-requirements-364b0fea36cd
PS I Love You N 186k https://psiloveyou.xyz/p-s-i-love-you-submissions-guidelines-9a7974fe532
OneZero N 181k onezero@medium.com
Better Programming N 105k https://medium.com/better-programming/write-for-us-5c4bcba59397
The Ascent Y 102k https://medium.com/the-ascent/how-to-write-for-the-ascent-on-medium-cddb899ef924
@jessefreeman
jessefreeman / csv_to_json.py
Created May 30, 2019 09:50
A Python script to convert ChestXray14 CSV labels into meta.json files to use with MissingLink.ai's Data Volumes.
import pandas as pd
import os
import random
import tqdm
class_mapping = {
0: 'Atelectasis',
1: 'Cardiomegaly',
2: 'Effusion',
3: 'Infiltration',

052, 067, 071, 098, 100

Example configuration:

python main.py --epochs 2000 --subdir 001

First, let’s import some python libraries we will need further ahead:

# Parsing parameters and paths
//
// Copyright (c) Jesse Freeman. All rights reserved.
//
// Licensed under the Microsoft Public License (MS-PL) License.
// See LICENSE file in the project root for full license information.
//
// Contributors
// --------------------------------------------------------
// This is the official list of Pixel Vision 8 contributors:
//
//
// Copyright (c) Jesse Freeman. All rights reserved.
//
// Licensed under the Microsoft Public License (MS-PL) License.
// See LICENSE file in the project root for full license information.
//
// Contributors
// --------------------------------------------------------
// This is the official list of Pixel Vision 8 contributors:
//
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using PixelVisionRunner;
using PixelVisionSDK;
using PixelVisionSDK.Utils;
namespace MonoGameRunner.Data
{
public class DisplayTarget : IDisplayTarget
@jessefreeman
jessefreeman / keys.lua
Last active August 28, 2018 21:16
Key map to use when capturing input for remapping keyboard input.
{name = Back, keyCode = 8, char = "!"},
{name = Tab, keyCode = 9, char = "@"},
{name = Enter, keyCode = 13, char = "#"},
{name = Escape, keyCode = 27, char = "$"},
{name = Space, keyCode = 32, char = "%"},
{name = Left, keyCode = 37, char = "^"},
{name = Up, keyCode = 38, char = "&"},
{name = Right, keyCode = 39, char = "*"},
{name = Down, keyCode = 40, char = "("},
{name = Delete, keyCode = 46, char = ")"},