Either create a browser snippet or execute from console:
var content = document.querySelector('.markdown-body');
var body = document.querySelector('body');
body.innerHTML = '';
body.appendChild(content);| option explicit | |
| On Error GoTo 0 | |
| 'Dim sResult: sResult = Wscript.ScriptName ''' debugging | |
| Const HKEY_CURRENT_USER = &H80000001 | |
| Dim strComputer, strKeyPath, strValName, dwValue, arrValues, objReg, WshShell | |
| arrValues = Array (" unknown", " show hidden files", " hide hidden files" ) | |
| strComputer = "." |
| """"""""""""""""""""""""""""""""""""""""""""""""""" | |
| " 01. General | |
| """""""""""""""""""""""""""""""""""""""""""""""""" | |
| set nocompatible | |
| filetype off | |
| """""""""""""""""""""""""""""""""""""""""""""""""" | |
| " 02. Vundle plugins | |
| """""""""""""""""""""""""""""""""""""""""""""""""" | |
| set rtp+=~/.vim/bundle/Vundle.vim |
| /** | |
| * Dynamically sets a deeply nested value in an object (returns new object) | |
| * | |
| * NOTE: By default it will create any missing nested keys! | |
| * | |
| * @param obj - Object which contains the value to set | |
| * @param path - Path to nested key being set | |
| * @param value - Target value to set | |
| * @param recursive - Whether to create non-existing paths | |
| * @returns Updated nested object |
Jupyter Notebooks have a tendency to cause Git conflicts when working collaboratively on a notebook. This is primarily due to cell metadata that really doesn't matter, and can be removed with a pre-save configuration hook. This hook will be run across all Jupyter Notebooks; however, it utilizes a custom opt-in metadata configuration option (reduce_git_conflicts). If the opt-ine is not specified, or set to false, the Notebook will save as normal.
NOTE: This approach does modify the notebook save file itself, which could lead to issues if there are fields that must remain in the file but lead to conflicts (and would otherwise be removed).
NOTE: This approach was developed with Jupyter Notebook in mind. While Jupyter Lab is quite similar, there are several differences (generating config, editing metadata).
| type CacheKey = string | number; | |
| interface Cache<T> { | |
| /** Number of cache entries */ | |
| readonly count: number; | |
| /** Get an item from the cache */ | |
| get: (key: CacheKey) => T | null; | |
| /** Check whether cache contains a given item */ | |
| has: (key: CacheKey) => boolean; | |
| /** Cached items */ |
While react-hook-form supports strong typing everywhere, including support for types inferred from a Yup schema (Yup.InferType<Schema>), passing field names to controls is still untyped. However, this can be resolved with RHF's FieldPath type and a helper function.
// Option 1: Declared per form, less boilerplate per control
export const getOrganizationFormField = (name: FieldPath<OrganizationForm>) => name;
getOrganizationFormField("billingAddress.address1");Some projects may have files that should be skipped in Git diff but still show in Git status (and be tracked). This can be made possible with a custom diff driver that uses a no-op command.
Adapted from StackOverflow - @KurzedMetal.
Create a global no-op diff command driver with the following command. Note that driver can be limited to local respository by removing the --global flag.
git config diff.nodiff.command /bin/trueUpgrading to Pocketbase v23 was a large undertaking due to the amount of fundamental changes to extending as a framework. The library contains several excellent resources, including the GitHub Release and Pocketbase Upgrade Guide, that help with the upgrade. However, they do not explain how to handle upgrading deployed/production instances, which is a bit more tricky depending on the server host. This guide deals with upgrading a Pocketbase application deployed on Pockethost, an excellent and affordable hosting service for Pocketbase apps.
The Pocketbase Upgrade Guide provides an excellent guide to the major breaking changes. However, there were a few assorted changes not explicitly documented (and there may be others still).
Email templa