- festkochende Kartoffeln
- Karotten (optional Suppengrün oder Gemüse nach Belieben)
- Zwiebeln (optional)
- Butter oder Magerine
- Salz
- Kümmel
This file contains hidden or 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
| /** | |
| * Attach a live event listener to the given selector. | |
| * @param {string} eventType - The type of event to listen for. | |
| * @param {string} selector - The CSS selector to match. | |
| * @param {function} callback - The callback function to execute when the event is triggered. | |
| * @param {Element} [context] - The element to listen for events on. Defaults to document if not provided. | |
| */ | |
| const live = function (eventType, selector, callback, context) { | |
| /* | |
| * Get nearest parent element matching selector. |
This file contains hidden or 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
| const events = { | |
| on(event, callback, options) { | |
| if (!event || !callback) { | |
| throw new Error("Event and callback must be defined"); | |
| } | |
| const [type, name] = event.split(":"); | |
| const el = this; | |
| // set options |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="de"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Live HTML Code Formatter</title> | |
| <!-- Prettier Standalone und den HTML Parser einbinden --> | |
| <script src="https://unpkg.com/prettier@2.8.8/standalone.js"></script> | |
| <script src="https://unpkg.com/prettier@2.8.8/parser-html.js"></script> | |
| <script src="https://unpkg.com/prettier@2.8.8/parser-babel.js"></script> |
This file contains hidden or 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
| /* | |
| * As method on Number prototype | |
| * (slower, see: https://jsperf.app/negative-modulo/2) | |
| * | |
| * Code: | |
| Number.prototype.mod = function (n) { | |
| "use strict"; | |
| return ((this % n) + n) % n; | |
| }; | |
| * |
To deactivate the automatic starting of the browser, using npx react-scripts start, see the following steps:
- open the file
node_modules/react-scripts/scripts/start.jsin your react project. - search for
openBrowserat the bottom of the file - add comments to this line
- save file and check => quiet .. no starting :-)
Einfacher Taschenrechner mit umgekehrt ponischer Notation (UPN) / Simple calculator with reverse Polish notation (RPN)
- umgekehrt ponische Notation (UPN) (Wikipedia)
<!DOCTYPE html>
<html>
This file contains hidden or 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
| const memoize = function (func) { | |
| const hashCode = function (value) { | |
| var hash = 0, | |
| i, | |
| chr, | |
| len; | |
| try { | |
| value = JSON.stringify(value); | |
| } catch (e) { |
NewerOlder