Skip to content

Instantly share code, notes, and snippets.

View JoeyBurzynski's full-sized avatar
💭
Hacking away on @EdgeSEO tools.

Joey Burzynski JoeyBurzynski

💭
Hacking away on @EdgeSEO tools.
View GitHub Profile
@JoeyBurzynski
JoeyBurzynski / sample-hreflang-annotations-in-xml-sitemap.xml
Last active February 6, 2023 07:59
Sample hreflang annotations via XML sitemap
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://www.mordorintelligence.sa</loc>
<!-- Arabic: macrolanguage (ar) -->
<xhtml:link
rel="alternate"
hreflang="ar"
href="https://www.mordorintelligence.sa"/>
@JoeyBurzynski
JoeyBurzynski / globalErrorHandler.js
Created February 1, 2023 20:38
JavaScript: Global onerror handler
window.addEventListener('error', function(e) {
var errorText = [
e.message,
'URL: ' + e.filename,
'Line: ' + e.lineno + ', Column: ' + e.colno,
'Stack: ' + (e.error && e.error.stack || '(no stack trace)')
].join('\n');
// Example: log errors as visual output into the host page.
// Note: you probably don't want to show such errors to users, or
@JoeyBurzynski
JoeyBurzynski / how-to-deal-with-unhandled-exceptions-and-unhandled-promise-rejections-in-javascript.md
Last active October 7, 2022 07:54
JavaScript: How to Deal with Unhandled Exceptions & Unhandled Promise Rejections in JavaScript
@JoeyBurzynski
JoeyBurzynski / web-design-inspiration-and-best-front-end-development-tools.md
Last active July 7, 2025 12:02
Web Design Inspiration: Best Practice, Blogs, Guides, Lists, Web Design Inspiration & Front-end Development Tools
@JoeyBurzynski
JoeyBurzynski / Reference: Bash Redirection - How to Use Bash Redirection.md
Created May 4, 2022 10:22
Reference: Bash Redirection - How to Use Bash Redirection

Reference: Bash Redirection

Before a command is executed, its input and output may be redirected using a special notation interpreted by the shell. Redirection allows commands’ file handles to be duplicated, opened, closed, made to refer to different files, and can change the files the command reads from and writes to. Redirection may also be used to modify file handles in the current shell execution environment. The following redirection operators may precede or appear anywhere within a simple command or may follow a command. Redirections are processed in the order they appear, from left to right.

Each redirection that may be preceded by a file descriptor number may instead be preceded by a word of the form {varname}. In this case, for each redirection operator except &gt;&amp;- and &lt;&amp;-, the shell will allocate a file descriptor greater than 10 and assign it to {varname}. If &gt;&amp;-

// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
@JoeyBurzynski
JoeyBurzynski / enough-python.ipynb
Created April 2, 2022 19:19 — forked from aparrish/enough-python.ipynb
Just enough Python!
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JoeyBurzynski
JoeyBurzynski / understanding-word-vectors.ipynb
Created April 2, 2022 19:15 — forked from aparrish/understanding-word-vectors.ipynb
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JoeyBurzynski
JoeyBurzynski / how-to-create-a-corner-ribbon-in-pure-css.md
Last active May 2, 2022 05:31
How to Create a Corner Ribbon in Pure CSS

How to Create a Corner Ribbon with CSS

CSS ribbons are often used when you want to display something important or eye catching on your site. Placing a small piece of text as a corner ribbon of a box can be a little tricky as it involves some trigonometry.

How to Create a Corner Ribbon in Pure CSS

@JoeyBurzynski
JoeyBurzynski / Homebrew_How-to-Backup-and-Restore-Homebrew-Packages-2022.md
Last active January 1, 2026 16:44
Homebrew: How to Backup & Restore Homebrew Packages [2022, MacOS]

Homebrew: How to Backup & Restore Homebrew Packages

Homebrew makes it easy to install and keep installed software up to date on your Mac - as part of my backup routine for my Mac I want to be able to run a single command to reinstall all packages.

If you're searching on how to backup & restore Homebrew, then I assume you're here for the commands.

Brewfiles

Brewfiles are files generated with definitions that Homebrew reads and processes, a generated