Skip to content

Instantly share code, notes, and snippets.

View daveydee33's full-sized avatar
😄
Mind, Body, and CODE ! ✌️😜

Dave Degeatano daveydee33

😄
Mind, Body, and CODE ! ✌️😜
View GitHub Profile
@daveydee33
daveydee33 / regex-and-sed-things.md
Last active March 29, 2022 04:20
Extract an HTML tag value using sed with regular expression

Extract the content from inside an HTML tag with sed and a regex

example <title>this is it</title> if we want to extract just this is it.

echo '<title>this is it</title>' | sed -nE 's/<title>(.*)<\/title>/\1/p'

Regex Find and select HTML attributes - such as a "class" name, even if it spans multiple lines.

@daveydee33
daveydee33 / vscode.md
Last active December 17, 2019 02:10
Some VSCode shortcuts and notes
  • ctrl+j to open/close/focus on the integrated terminal.
    This is good to quickly switch cursor from the text editor to the terminal without using the mouse

  • use “clo” instead of “clg”. This comes from one of my snippets extensions

  • anfn or nfn to create arrow functions This comes from a snippets extension

https://marketplace.visualstudio.com/items?itemName=xabikos.JavaScriptSnippets