Skip to content

Instantly share code, notes, and snippets.

Avatar

Jesse Freeman jessefreeman

View GitHub Profile
@jessefreeman
jessefreeman / display-example.lua
Last active Jul 8, 2020
A simple Pixel Vision 8 code example to visualize the over scan gutter.
View display-example.lua
--[[
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 Jul 5, 2020
A list of medium publications I would like to be an author on.
View top-medium-publications.csv
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
A Python script to convert ChestXray14 CSV labels into meta.json files to use with MissingLink.ai's Data Volumes.
View csv_to_json.py
import pandas as pd
import os
import random
import tqdm
class_mapping = {
0: 'Atelectasis',
1: 'Cardiomegaly',
2: 'Effusion',
3: 'Infiltration',
View post-test.md

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
View Canvas.cs
//
// 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:
//
View DisplayChip.cs
//
// 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:
//
View DisplayTarget.cs
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 Aug 28, 2018
Key map to use when capturing input for remapping keyboard input.
View keys.lua
{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 = ")"},
View gist:576e291aaee97ff611fbf0b6c76cbfcb
local startValue = 0
local handValue = {}
local timeDelay = 1
local timeCount = 0
local cursorPos = 0
local gameOver = true
local BLACK, WHITE, GREY = 32, 51, 27
function PadNumber(value, length)
return string.format("%0"..length.."d", value)
View gist:19830560323455e3159c8c5ccdcf2482
This file has been truncated, but you can view the full file.
Mono: Config attempting to parse: './mono/config'.
Mono: Config attempting to parse: '/home/parallels/.mono/config'.
Mono: process_set_name: using [Pixel Vision 8 Runner.exe] as prog name
Mono: mono_w32handle_new: create Process handle 0x1f82d50
Mono: Assembly Loader probing location: '/home/parallels/Desktop/Pixel Vision 8 Runner-Linux/mscorlib.dll'.
Mono: Image addref mscorlib[0x1f948e0] -> /home/parallels/Desktop/Pixel Vision 8 Runner-Linux/mscorlib.dll[0x1f93350]: 2
Mono: Prepared to set up assembly 'mscorlib' (/home/parallels/Desktop/Pixel Vision 8 Runner-Linux/mscorlib.dll)
Mono: Assembly Loader loaded assembly from location: '/home/parallels/Desktop/Pixel Vision 8 Runner-Linux/mscorlib.dll'.
Mono: Config attempting to parse: '/home/parallels/Desktop/Pixel Vision 8 Runner-Linux/mscorlib.dll.config'.