This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
src/tests | |
node_modules | |
build | |
dist | |
dist-ssr | |
.vscode | |
public | |
*.test.js | |
*.test.jsx | |
*.test.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
src/tests | |
node_modules | |
build | |
dist | |
dist-ssr | |
.vscode | |
public | |
*.test.js | |
*.test.jsx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// fuzzymatch.js - Basic fuzzy matching and filter functions. | |
// | |
// Full explanation and usage here: | |
// https://jonbeebe.net/2023/12/basic-fuzzy-matching-function | |
// | |
export const fuzzyMatch = (searchFor, inTarget) => { | |
const search = (searchFor || "").trim().toLowerCase(); | |
const target = (inTarget || "").trim().toLowerCase(); | |
const searchLength = search.length; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// fuzzymatch.ts - Basic fuzzy matching and filter functions. | |
// | |
// Full explanation and usage here: | |
// https://jonbeebe.net/2023/12/basic-fuzzy-matching-function | |
// | |
export const fuzzyMatch = (searchFor: string, inTarget: string): number => { | |
const search = (searchFor || "").trim().toLowerCase(); | |
const target = (inTarget || "").trim().toLowerCase(); | |
const searchLength = search.length; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"screens": { | |
"Tab1": { | |
"title": "T1 Tab", | |
"styles": { | |
"main": { | |
"backgroundColor": "green", | |
"width": "100%", | |
"height": "100%" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2020-07-03T00:52:20.727Z","extensionVersion":"v3.4.3"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
package Frontmatter; | |
use YAML; | |
use Text::Markdown::Hoedown; | |
my $PATTERN = qr/ | |
^\s* # possible whitespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def list_splice(target, start, delete_count=None, *items): | |
"""Remove existing elements and/or add new elements to a list. | |
target the target list (will be changed) | |
start index of starting position | |
delete_count number of items to remove (default: len(target) - start) | |
*items items to insert at start index | |
Returns a new list of removed items (or an empty list) | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
state.Intel { | |
control.1 { | |
iface CARD | |
name 'HDMI/DP,pcm=3 Jack' | |
value false | |
comment { | |
access read | |
type BOOLEAN | |
count 1 | |
} |