Skip to content

Instantly share code, notes, and snippets.

View polm's full-sized avatar

Paul O'Leary McCann polm

View GitHub Profile
[ 24.189703] fb0: switching to nouveaufb from VESA VGA
[ 24.190015] Console: switching to colour dummy device 80x25
[ 24.190667] nouveau 0000:02:00.0: NVIDIA GT218 (0a8200b1)
[ 24.335909] nouveau 0000:02:00.0: bios: version 70.18.45.00.00
[ 24.337951] nouveau 0000:02:00.0: fb: 512 MiB DDR3
[ 24.645854] audit: type=1130 audit(1587408617.183:11): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-fsck@dev-disk-by\x2dlabel-shougeimaru\x2dhome comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 24.675716] EXT4-fs (sda2): mounting ext3 file system using the ext4 subsystem
[ 24.776930] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: data=ordered
[ 25.510645] [TTM] Zone kernel: Available graphics memory: 2015186 KiB
[ 25.510650] [TTM] Initializing pool allocator
[ 58.140] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[ 59.061]
X.Org X Server 1.20.7
X Protocol Version 11, Revision 0
[ 59.061] Build Operating System: Linux Arch Linux
[ 59.061] Current Operating System: Linux shougeimaru 5.6.5-arch3-1 #1 SMP PREEMPT Sun, 19 Apr 2020 13:14:25 +0000 x86_64
[ 59.061] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=9342fe9f-1bc1-42e5-aa8e-b4f7d26ce115 rw quiet
[ 59.061] Build Date: 14 January 2020 07:13:52AM
[ 59.061]
[ 59.062] Current version of pixman: 0.38.4
@polm
polm / dummy.py
Created October 18, 2019 01:16
Simplified version of embedding training
#!/usr/bin/env python3
# https://pytorch.org/tutorials/beginner/nlp/word_embeddings_tutorial.html
# http://bytepawn.com/hacker-news-embeddings-with-pytorch.html
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import json
from random import choice, random, shuffle
#!/usr/bin/env python3
# https://pytorch.org/tutorials/beginner/nlp/word_embeddings_tutorial.html
# http://bytepawn.com/hacker-news-embeddings-with-pytorch.html
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import json
from random import choice, random, shuffle

Etrian Odyssey Director's Diary

These notes were blog posts written by the director of the first Etrian Odyssey Game, Kazuya Niinou, leading up to its release. They were originally images embedded in a Flash page, so I took the liberty of typing them up and posting them here. The Japanese source for these articles is no longer available on the official Etrian Odyssey page, but you can find it on archive.org.

import cv2
import numpy as np
import sys
import math
"""
This finds quadrilateral objects, cuts them out, squares them, and fixes skew.
It works but has strict limitations:
@polm
polm / gradientify.sh
Created August 21, 2015 04:17
Scripts for making photos in to lofi pixel art
#!/bin/bash
# based on cellusion's photoshop method
convert "$1" -resize 256x1000 -colorspace Gray -auto-level \
gradient.png -clut -scale 1000x1000 -posterize 6 "$1".out.png
@polm
polm / bingo.p8.cleaned
Created May 19, 2015 15:51
Bingo comparison: with STATE and with driver function
pico-8 cartridge // http://www.pico-8.com
version 4
__lua__
-- version without "state" string
-- ultra magic bingo quest world
-- ld48 #32 - by 23
-- rules
-- try to make bingo to hurt
-- your opponent
@polm
polm / bingo.p8
Created April 19, 2015 16:24
ld48 #32 entry, written in pico8
pico-8 cartridge // http://www.pico-8.com
version 4
__lua__
-- ultra magic bingo quest world
-- ld48 #32 - by 23
-- rules
-- try to make bingo to hurt
-- your opponent
-- but don't fill the dead pile!

Following is a translation of a post by Kenta Cho (@abagames) about what he learned making 50 minigames in 2014. The original post is here:

http://d.hatena.ne.jp/ABA/20141223#p1

This translation is by Paul McCann (@polm23); please feel free to contact me with any comments or corrections.

The Secret to Creating Fun Games I Learned By Making 50 Games in a Year

... is that there isn't one.