Category: Code

Metadata/Frontmatter of current note in Obsidian

Get the metadata or the frontmatter of the currently open note in Obsidian plugin development.

Get selected text in Obsidian

Getting the currently selected text when creating an Obsidian plugin

Get current file content in Obsidian

Get currently open file and content when developing a plugin for Obsidian

Store Emoji in MySQL DB

If you want to store Emoji characters in a MySQL DB, you need to update the table encoding. You can…

HTML Native Autocomplete

HTML Native Autocomplete – no JavaScript necessary… <input type=”email” size=”40″ list=”defaultEmails”> <datalist id=”defaultEmails”> <option value=”jbond007@mi6.defence.gov.uk”> <option value=”jbourne@unknown.net”> <option value=”nfury@shield.org”> <option…

Intro summary and details tags in HTML5

A brief introduction to the <summary> and the <details> HTML5 Tags

Puppeteer and ShadowDOM

If you are testing an app – be it React, Angular or Vue – and you are using an library…

Iterate a Text File in Bash

This is how you iterate thru a text file outputting a line at a time in Bash shell scripting.

Watch for Ubuntu 9.10 Launch

This script will run check for ubuntu launch once every 5 mins and let you know if there is an launch.

Replacing in Found Files

Replace one string by another in all file found by find. find . -name *whatyouwant* -exec perl -pi.bak -e ‘s/TEXT_TO_REPLACE/TEXT_TO_REPLACE_IT_WITH/g’…