…ines Loading Original line number Diff line number Diff line @@ -29,6 +29,10 @@ constexpr int MAXIMUM_SECONDARY_AXIS_LENGTH = 7; // maximum height/width for aud constexpr int NO_AUDIO_PRIMARY_AXIS_POSITION constexpr double MIN_DISPLAY_DB 100.0 // Don't display levels below this t…
…yet imported any media */ static void drawDropFilesPlaceholder QPainter painter const QRect rect const QPalette palette // Increment default font size by this amount to make it slightly stand out static constexpr int FONT_SIZE_INCREASE // Margin as percentage of font height. Less…
…ccess event handler code saves the opened connection for use in later examples. const request = indexedDB . open ( "library" ); let db ; request . onupgradeneeded = function () { // The database did not previously exist, so create object stores and indexes. const db = request . r…
…ccess event handler code saves the opened connection for use in later examples. const request indexedDB open "library" ); let db request onupgradeneeded function () // The database did not previously exist, so create object stores and indexes. const db request result const store …
…evel.mjs' ; import { IoRemotes } from 'https://js.m-ld.org/ext/socket.io.mjs' ; const domainName = ` ${uuid()} .public.gw.m-ld.org` ; const state = await clone( new MemoryLevel(), IoRemotes, { '@id' : uuid(), '@domain' : domainName, genesis : true , io : { uri : "https://gw.m-ld.…
…on pass. It performs copy propagation, dead code ;;; elimination, inlining, and constant folding, all while preserving ;;; the order of effects in the residual program. ;;; ;;; For more on partial evaluation, see William Cook’s excellent ;;; tutorial on partial evaluation at DSL …
…ths.h" #include <grantlee_core.h> /** Don't escape the code generation output. 'const QString &' should not become 'const QString &' */ class NoEscapeOutputStream : public Grantlee :: OutputStream { public: NoEscapeOutputStream () : Grantlee :: OutputStream () { } NoEscapeOut…
… word Früh (which means "early" in German) could be used as a variable name. js const Früh = "foobar"; But, the variable früh is not the same as Früh because JavaScript is case sensitive. In JavaScript, instructions are called statements and are separated by semicolons (;). A sem…
…ression - use : between the parameter list and the return type rather than => . Construct Signatures JavaScript functions can also be invoked with the new operator. TypeScript refers to these as constructors because they usually create a new object. You can write a construct sign…
…example with and without bind() : js class Something { name = "Something Good"; constructor(element) { // bind causes a fixed `this` context to be assigned to `onclick2` this.onclick2 = this.onclick2.bind(this); element.addEventListener("click", this.onclick1); element.addEventLi…
…e number Diff line number Diff line @@ -152,7 +152,7 @@ void Core::initHeadless(const QUrl &url) connect this Core :: displayBinLogMessage this []( QString text int QString qInfo () << QStringLiteral "Bin message: " << text }); void Core :: initGUI const QString MltPath const QUr…
…e number Diff line number Diff line @@ -152,7 +152,7 @@ void Core::initHeadless(const QUrl &url) connect this Core :: displayBinLogMessage this []( QString text int QString qInfo () << QStringLiteral "Bin message: " << text }); void Core :: initGUI const QString MltPath const QUr…
… } from '@wordpress/block-editor'; import { useSelect } from '@wordpress/data'; const ExampleComponent = () => { // This example assumes that a core/embed block is the first block in the Block Editor. const activeBlockVariation = useSelect( ( select ) => { // Retrieve the list of…
… defineComponent, ref } from vue import { CdxMenuButton } from @wikimedia/codex const menuItems { label Edit , value edit }, { label , value }, { label , value , disabled true }, { label Share , value share }, { label Delete , value delete , action destructive ]; export default d…
… defineComponent, ref } from vue import { CdxMenuButton } from @wikimedia/codex const menuItems { label Edit , value edit }, { label , value }, { label , value , disabled true }, { label Share , value share }, { label Delete , value delete , action destructive ]; export default d…