ErickO
ErickO
KPCKevin Powell - Community
Created by ErickO on 4/16/2024 in #os-and-tools
Good Image compressors/minifiers for the command line?
I have about 10k images I need to compress, browser tools have limits for size/number of images so I want something local I can setup and let it run for as long as it needs to, any good tools for that?
60 replies
KPCKevin Powell - Community
Created by ErickO on 3/8/2024 in #resources
Which database to use for my project? SQLite might be your best bet
Many fear SQLite for being a "toy" or "incomplete" database and that it "doesn't scale" but the truth is, SQLite is a very complete database that will be good enough for most projects out there even if you end up with thousands or hundreds of thousands of users. https://antonz.org/sqlite-is-not-a-toy-database/
1 replies
KPCKevin Powell - Community
Created by ErickO on 2/14/2024 in #resources
Git client from the co-funder of Github
1 replies
KPCKevin Powell - Community
Created by ErickO on 7/1/2023 in #resources
Color Palettes
* Color Hunt - https://colorhunt.co/ * 2 Color Combinations - https://2colors.colorion.co/ * Coolors - https://coolors.co/palettes/trending * Flat UI Colors - https://flatuicolors.com/ * Colorable - https://colorable.jxnblk.com/ * Randoma11y - https://randoma11y.com/ * Happy Hues - https://www.happyhues.co/ * AI Colors - https://tintmint.net/ * Real Time Colors - https://realtimecolors.com/
1 replies
KPCKevin Powell - Community
Created by ErickO on 6/23/2023 in #resources
Generate a graph of possible matches for your regex
1 replies
KPCKevin Powell - Community
Created by ErickO on 6/14/2023 in #resources
Learn CSS Grid
Reading * CSS Grid cheatsheet - https://grid.malven.co/ * CSS Grid by Example - https://gridbyexample.com/ * CSS Tricks Complete Guide to Grid - https://css-tricks.com/snippets/css/complete-guide-grid/ Videos * Wes Bos' CSS Grid - https://cssgrid.io/ * Fireship's Joy of Grid - https://youtu.be/705XCEruZFs * Kevin Powell's Learn CSS Grid the easy way - https://youtu.be/rg7Fvvl3taU * Layout Land's Grid Playlist - https://youtube.com/playlist?list=PLbSquHt1VCf1x_-1ytlVMT0AMwADlWtc1 Hand's On * Grid Garden - https://cssgridgarden.com/ * Grid Critters - https://gridcritters.com/ $$ Paid
1 replies
KPCKevin Powell - Community
Created by ErickO on 3/29/2023 in #resources
Accessibility (a11y) Resources
--- LEARN A11Y (ACCESSIBILITY) --- FREE intro to a11y by W3C - https://www.edx.org/course/web-accessibility-introduction Accessibility by MDN - https://developer.mozilla.org/en-US/docs/Learn/Accessibility Accessibility course by Google - https://web.dev/learn/accessibility/ --- A11Y BLOGS --- Sara Soueidan's blog - https://www.sarasoueidan.com/blog/ Ben Myers' Blog - https://someantics.dev/ The A11Y Project - https://www.a11yproject.com/ Sarah Higley's - https://sarahmhigley.com/ -- Good Reads -- Ultimate Accessibility Guide - https://inhuofficial.hashnode.dev/ultimate-accessibility-guide-101-tips-and-tricks -- A11Y patterns -- Patterns and components - https://www.a11ymatters.com/patterns Patterns for some components thoroughly explained - https://inclusive-components.design/ W3C's Patterns - https://www.w3.org/WAI/ARIA/apg/patterns/ Guidance based on BBC GEL - https://bbc.github.io/gel/ Ebay's MIND Patterns - https://ebay.gitbook.io/mindpatterns/ Design Principles to consider when building something - https://inclusivedesignprinciples.org/ -- MORE RESOURCES -- Compilation of courses free and paid - https://github.com/mgifford/a11y-courses
5 replies
KPCKevin Powell - Community
Created by ErickO on 3/29/2023 in #resources
Basic security resources
1 replies
KPCKevin Powell - Community
Created by ErickO on 3/19/2023 in #os-and-tools
Vim ways of adding a character to the end of the line
70 replies
KPCKevin Powell - Community
Created by ErickO on 3/12/2023 in #resources
Record CLI apps as GIFs for demos
1 replies
KPCKevin Powell - Community
Created by ErickO on 2/25/2023 in #resources
Easy dev portfolio
For when you can't be bothered to make your own: https://devtr.ee/?ref=ErickOhm
1 replies
KPCKevin Powell - Community
Created by ErickO on 2/1/2023 in #back-end
Scheduled code execution
If you need a piece of code to run at exactly x date at y time, but also another piece of code (like a reminder) some 10 or whatever minutes before that date...how would you accomplish that? Cron jobs? on your API code or a separate Cron service? Any other methods you would use? All ideas welcomed
5 replies
KPCKevin Powell - Community
Created by ErickO on 11/14/2022 in #front-end
Custom Errors Javascript
I'm making a differentiation between the errors sent from my API and the errors I'd get from Network issues during a fetch call, so at the moment if my API returns an http error a throw a custom error so I can catch it, is this the best methods, what other methods do you know?
class ResponseError extends Error {
constructor(message) {
super(message);
this.name = "ValidationError";
}
}
class ResponseError extends Error {
constructor(message) {
super(message);
this.name = "ValidationError";
}
}
catch (error) {
if (error instanceof ResponseError) {
throw new Error(error.message);
} else {
console.error(error);
throw new Error("Something went wrong, please try again.");
}
}
catch (error) {
if (error instanceof ResponseError) {
throw new Error(error.message);
} else {
console.error(error);
throw new Error("Something went wrong, please try again.");
}
}
8 replies