Skip to content

Instantly share code, notes, and snippets.

View GeorgeHernandez's full-sized avatar
🌱

George Hernandez GeorgeHernandez

🌱
View GitHub Profile
@GeorgeHernandez
GeorgeHernandez / jsQuickie.js
Last active November 30, 2023 19:53
Quick notes on basic JavaScript
/*
* @fileoverview Quick notes on basic JavaScript stuff
* Via: https://gist.github.com/GeorgeHernandez/4819ba17676da1e14b31073a05c587fe
* FYI: This document assumes Semicolon Insertion (ASI)
*/
/**
* Declaration const let var
* Safety High Medium Low
* Scope Block Block Global or Function
@GeorgeHernandez
GeorgeHernandez / now.html
Last active May 5, 2024 21:38
Date & Time in HTML & Javascript
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Now</title>
<!--
README
Display the date and time info
Via: https://gist.github.com/GeorgeHernandez/9190e4d046d3440882b02ae766265d51
Usage: Save this file as a local copy, then open in a browser.
@GeorgeHernandez
GeorgeHernandez / CaseOfCases.md
Last active June 23, 2023 21:07
A collection of cases

Case of Cases

This piece is about capitalization and letter case for sets of words. Which capitalization style should be used depends on context. E.g.

My preference is to have the name of the capitalization style also be an example of it.

@GeorgeHernandez
GeorgeHernandez / ThreeLetterWords.md
Last active October 23, 2023 15:51
Three letter words for random use.
@GeorgeHernandez
GeorgeHernandez / StartToFinish.md
Last active December 15, 2022 23:53
Notes on beginnings, endings, and everything in between with a computing emphasis.

Start to Finish

Beginnings

  • The Big Bang.
  • "In the beginning" - Genssis 1:1
  • Birth.
  • Many works start with a Title and a Byline.
  • A Paragraph is a self-contained unit of discourse. In Vim a paragraph begins after each empty line. This is also the case in regular English but sometimes an empty line is replaced with indentation of the 1st line of the paragraph.
  • In computers a magic number is a distinct value or sequence of characters that has particular meaning, often to identify a file format. Some magic numbers include:
@GeorgeHernandez
GeorgeHernandez / vimrc
Last active December 10, 2022 18:13
My basic vimrc file to configure Vim
" This is a vimrc file.
" Comments start with a double quote
" Key ASCII:
" 9: HT, 10: LF, 13: CR
" 32- 64: !"#$%&'()*+,-./0123456789:;<=>?@
" 65- 96: ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`
" 97-126: abcdefghijklmnopqrstuvwxyz{|}~
" Disable compatibility with vi because it can cause unexpected issues
@GeorgeHernandez
GeorgeHernandez / .prettierrc.yml
Created November 1, 2022 17:05
My setting for the Prettier formatter
arrowParens: 'always' # default: 'always'
bracketSameLine: true # NOT default: false
bracketSpacing: true # default: true
embeddedLanguageFormatting: 'auto' # default: 'auto'
endOfLine: 'lf' # default: 'lf'
# filepath
htmlWhitespaceSensitivity: 'css' # defaut: 'css'
insertPragma: false # default: false
jsxBracketSameLine: true # NOT default: false. DEPRECATED.
jsxSingleQuote: false # default: false. See singleQuote.
@GeorgeHernandez
GeorgeHernandez / TreeCharacters.md
Last active December 10, 2022 18:20
Characters used to represent trees like directories and files.

Tree Characters

No, I'm not talking about Treebeard. Rather, I'm talking about characters that can be used to represent tree structures, especially directories and files in directory structures.

In graph theory, a tree graph a tree is an undirected graph in which any two vertices (nodes like directories and files) are connected by exactly one (1..1) path, or equivalently a connnected acyclic undirected graph. The connections are edges (aka links or lines).

The examples below will represent the following tree (listed in alphabetical order):

root/
@GeorgeHernandez
GeorgeHernandez / WindowsShortcutsForScreenshots.md
Last active July 1, 2022 19:53
Windows Shortcuts for Screenshots & Nearby

Windows Shortcuts for Screenshots & Nearby

Last tested 2022-07-01 on Windows 11.

TLDR: Windows Shortcuts for Screenshots:

                   PrtSc Screenshot all Monitors. Save as Pictures/Screenshots/<date>*.png.
               Win PrtSc Screenshot all Monitors. Save as Pictures/Screenshots/Screenshot*.png.
    Ctrl       Win PrtSc Screenshot all Monitors. Save to Clipboard.
@GeorgeHernandez
GeorgeHernandez / WishListGoogle.md
Last active February 26, 2024 04:25
Just a few personal requests for Google.

Google Wish List

Just a few personal requests for Google.

Android

  • Better capabilities for open & editing text (*.txt) files in Google Drive.
  • See more notes in Google Drive section.
  • Enter line breaks within a cell in Google Sheets:
  • Workarounds: