Skip to content

Instantly share code, notes, and snippets.

View jaames's full-sized avatar
🐳
~

James jaames

🐳
~
  • UK, '97
  • 10:16 (UTC +01:00)
View GitHub Profile
@zhuowei
zhuowei / patch_constanttype.patch
Last active September 25, 2022 12:17
Patches for unluac to disassemble (and partially decompile) Playdate's Lua 5.4.0 beta bytecode
# HG changeset patch
# User Zhuowei Zhang <zhuowei@worthdoingbadly.com>
# Date 1633490863 14400
# Tue Oct 05 23:27:43 2021 -0400
# Node ID 9a209bac7961ed4cc661f1a358d8ef2e23c74d7b
# Parent 0390d042f93125be8257ae3a0520aa6b1003145c
Add PlayDate's 0x23 integer type, fix boolean parsing for Lua 5.4 beta
diff --git a/src/unluac/parse/LConstantType.java b/src/unluac/parse/LConstantType.java
--- a/src/unluac/parse/LConstantType.java
@Prof9
Prof9 / guide.md
Last active June 25, 2022 04:21
Kaeru WFC connection guide for Nintendo Wi-Fi USB Connector

Notes:

  • For some people setting DNS settings in the Nintendo Wi-Fi USB Connector properties doesn't seem to work, if that applies to you you may have to set up DNS in the internet-facing connection properties instead.

Connection guide

  1. Set up a virtual machine running Windows XP.

    • Plenty of guides online on how to do this, so I won't be going into too much detail here.
    • I'd recommend using VirtualBox and the "Windows XP Mode" method found here, as all the downloads you need are from official sources: https://www.makeuseof.com/tag/download-windows-xp-for-free-and-legally-straight-from-microsoft-si/. NOTE: Skip the part where it tells you to set up Windows XP Virtual Machine Network Settings, you don't need to do this if the internet connection in your VM is already working.
@potch
potch / bayer.lua
Last active March 5, 2022 05:53
Small Lua library for working with bayer filters for use with playdate.graphics
-- bayer.lua v1.0
-- by Potch
-- MIT License
-- hard-code smallest bayer
local bayer2 = { [0] = 0x0, [1] = 0x2, [2] = 0x3, [3] = 0x1 }
-- t should be a 64 entry table of 1 and 0s, indexed at 0
-- returns a 1-indexed table of bytes for use with playdate.graphics.setPattern
local function toBytes(t)
@nepsilon
nepsilon / 3-hidden-css-tips.md
Last active May 13, 2021 15:07
3 hidden CSS tips — First published in fullweb.io issue #62

3 hidden CSS tips

1. Use empty-cells to style table empty cells:

Surprisingly the browser support is quite good and extends back to IE8. Convenient to give less visual predominance to empty cells.

table {
  empty-cells: hide;
}
;(function(handlers) {
if (!handlers) {
throw new Error('Nothing to handle');
}
document.documentElement.addEventListener('click', function(event) {
var handler = event.originalTarget.getAttribute('data-handler');
if (!handler) {
// nothing to do
return;
@lstanard
lstanard / SASS-CodeKit project structure
Created April 1, 2014 13:59
SASS-CodeKit project structure
/*------------------------------------------------------------------
SASS/CODEKIT PROJECT STRUCTURE
--------------------------------------------------------------------
index.html
css.css
/images/
/js/