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;
}
/*------------------------------------------------------------------ | |
SASS/CODEKIT PROJECT STRUCTURE | |
-------------------------------------------------------------------- | |
index.html | |
css.css | |
/images/ | |
/js/ |
;(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; |
-- 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) |
Notes:
Set up a virtual machine running Windows XP.
# 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 |
/* | |
const pnts = [ | |
-2,0,-2, | |
-2,0,2, | |
2,0,2, | |
4,0,1, | |
]; | |
const poly = roundedline( pnts ); | |
const buf = new Vec3Buffer( poly ); |
/* | |
NOTES | |
https://blog.scottlogic.com/2019/11/18/drawing-lines-with-webgl.html | |
EXAMPLE | |
const pnts = [ | |
-2,0,-2, | |
-2,0,2, | |
2,0,2, | |
4,0,0, |
This Github Actions workflow file lets you deploy multiple websites to Cloudflare Pages in subfolders instead of subdomains by using an intermediate repository to hold the built files.
DEPLOY_PAT
with the value of a GitHub personal access token of an account that has access to push to your build repoenv
:
AuthorNameGoesHere
with the author of the build repoBuildRepoNameGoesHere
with the name of the build repoUsernameOfPATGoesHere
with the username of the account you created the personal access token forThis entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.
I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.