Category: Snippets and Notes

The posts in this area are mostly notes to myself about things I’ve learned along the way and don’t want to forget.

Glitch Hosting “Disk Full” Fixes

Add to .gitignore: In the Terminal: Note!! pnpm will not understand ci and will pass it to npm directly, and you will end up with locally-installed npm modules that contribute to your quota. refresh will trigger the editor refresh, pnpm to prune & install, and the app to restart.

My Favourite Text Gradients

Note: I am using -webkit prefixed styles for all three relevant rules to ensure that only browsers that implement all three will load the background gradient at all. I could use a proper polyfill and/or @supports, but honestly this creates more readable code. Non-webkit browsers have started using webkit prefixes too, so this code works… Read More

Automatically generate Google Fonts link.

Useful if you are making a customizable skin, or if you allow users to set font preferences in their account settings. Of course, the basic way you include google fonts on your page is like this: HTML (preconnects are technically optional): Or, CSS Include: So how to generate that link from an array of font… Read More

Data Binding, Updates, and SQLDataSource

Random Things to remember: SQLDataSource won’t bind parameters properly if you don’t specify a type, but the GUI data source setup window doesn’t guess nor prompt you to provide them. It’s under ‘Advanced’; or go into the code and add them. GridView will automatically add anything with ‘id’ in the field name to the DataKeys… Read More