Skip to content

Instantly share code, notes, and snippets.

View bgoonz's full-sized avatar
🎯
learning

Bryan C Guner bgoonz

🎯
learning
View GitHub Profile
@bgoonz
bgoonz / CamelCase.tsx
Created June 17, 2022 10:24
CamelCase.tsx
export default function toCamelCase(string: string) {
const result = string
.toLowerCase()
.trim()
.split(/[ -_]/g)
.map(word => word.replace(word[0], word[0].toString().toUpperCase()))
.join('');
return result.replace(result[0], result[0].toLowerCase());
}
@bgoonz
bgoonz / rename-files-after-parent-folder.py
Created June 17, 2022 04:36
rename-files-after-parent-folder.py
# Moving all files in a directory to a subdirectory with the same name as the file.
#!/usr/bin/env python3
import shutil
import os
import sys
dr = sys.argv[1]
for root, dirs, files in os.walk('./'):
for f in files:

title: Accessibility in React weight: 0 excerpt: At this point, we have accomplished all of the features we set out to implement. A user can add a new task, check and uncheck tasks, delete tasks, or edit task names. And they can filter their task list by all, active, or completed tasks. seo: title: 'Accessibility in React' description: 'At this point, we have accomplished all of the features we set out to implement. A user can add a new task, check and uncheck tasks, delete tasks, or edit task names. And they can filter their task list by all, active, or completed tasks.' robots: [] extra: [] template: docs


title: Learn Accessibility weight: 0 excerpt: Learn Accessibility seo: title: '' description: '' robots: [] extra: [] type: stackbit_page_meta

@bgoonz
bgoonz / request-web-apis-mdn.md
Created June 15, 2022 13:30
Request - Web APIs | MDN

Request

Request() constructor

cross-origin referrer stripped out and navigate mode converted to same-origin when constructor created from existing Request object.

init.referrer parameter

navigate mode

@bgoonz
bgoonz / seo.md
Created June 8, 2022 19:01
seo.md

Search Engine Optimization (SEO)

Q1. When developing a backlink strategy, what approach would be most beneficial?

  • Guest post the article to as many sites as possible
  • Create an infographics and share it with relevant bloggers
  • Create diverse and unnatural links
  • Distribute links in comment sections of websites

Q2. What is a key reason the URL domain.com/apparel/jackets is preferable to the URL domain.com/p=141?

@bgoonz
bgoonz / ESLINT.md
Last active May 29, 2022 11:44
ESLINT

ESLINT: