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 / layers_to_sprite_sheet.js
Created March 15, 2011 01:15
This is a PS script to make Sprite Sheets out of layers. Modified from http://www.garagegames.com/community/blogs/view/11527
// Put this file in Program Files\Adobe\Photoshop\Presets\Scripts\
// In PhotoShop menu File > Automate > Scripts: layersToSprite.js
// Arrange layers into a sprite sheet.
if (documents.length > 0)
{
// --------------------------
docRef = activeDocument;
@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 / radar.js
Last active August 10, 2021 14:44
Here is a simple radar plugin based on https://github.com/bitmapshades/Minimap. This is still hard coded to my own game and would need some modification in order to run in another ImpactJS project.
ig.module(
'plugins.radar'
)
.requires(
'impact.impact',
'impact.entity',
'game.entities.base-alien',
'game.entities.air-powerup',
'game.entities.energy-powerup',
'game.entities.artifact',
@jessefreeman
jessefreeman / camera.js
Created March 1, 2013 20:27
A simple camera for ImpactJS. Also allows for a mask overlay for simple lighting effects.
ig.module(
'game.plugins.camera'
)
.requires(
'impact.game',
'impact.image'
)
.defines(function () {
@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
ig.module(
'plugins.texture-atlas'
)
.requires(
'impact.animation',
'impact.image',
'impact.entity'
)
.defines(function () {
"use strict";
@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