- Similar to JavaScript → cool/strange/simple at the beginning
- Evolution of tools/practices for defining context/prompts/LLMs
3 months usage of passive use at SCB
- Generating tests
- Explaining code
- Simple refactoring
To parse the XML string into an array of objects in Node.js without using additional libraries, you can use the built-in DOMParser available in a browser environment or with the help of the xmldom package in Node.js. Since you want to avoid additional libraries, we will use basic string manipulation and DOM methods (if you can use them).
Here's an approach using JavaScript that should work directly in a browser environment:
const xmlString = `
<root>
<glyph glyph-name="foo" unicode="" />
<glyph glyph-name="bar" unicode="0020" />
</root>To achieve the parallel processing of PostCSS files and load them as a separate CSS bundle in your Webpack setup with React, TypeScript, and CSS/LESS, you can follow these steps:
First, make sure you have the necessary PostCSS and Webpack loaders installed:
npm install postcss-loader postcss-preset-env css-loader style-loader mini-css-extract-plugin --save-devany void
boolean number string
null undefined
| import React, { useState, useEffect, useRef } from 'react'; | |
| interface MenuItemProps { | |
| children: React.ReactNode; | |
| } | |
| interface ResponsiveMenuProps { | |
| children: React.ReactNode; | |
| style?: React.CSSProperties; | |
| renderHamburgerButton?: (onClick: () => void, isOpen: boolean) => React.ReactNode; |
| import { useState, useEffect, useRef, useCallback } from 'react'; | |
| // useAsync | |
| type Status = 'idle' | 'pending' | 'success' | 'error'; | |
| interface UseAsyncState<T> { | |
| status: Status; | |
| data?: T; | |
| error?: Error; | |
| } | |
| function useAsync<T>(asyncFunction: () => Promise<T>, dependencies: any[] = []): UseAsyncState<T> { |
https://leetcode.com/discuss/interview-question/4161389/All-you-need-to-know-about-trie/ https://leetcode.com/problems/implement-trie-prefix-tree/editorial/?envType=study-plan-v2&envId=leetcode-75
cur.append(digit.charAt(i));
DFS(digits, index + 1, myMap, cur, myList);
cur.deleteCharAt(cur.length() - 1);Located in alphabetical order (not prefer)
Cab), also designed as a more modern replacement, written in Cgolang)