The fastest and correct module for SQLite3 in Deno.
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
import { Hono } from 'hono' | |
import { logger } from 'hono/logger' | |
import { poweredBy } from 'hono/powered-by' | |
const app = new Hono() | |
app.use( '*', logger(), poweredBy() ) | |
app.get( '/', ( c ) => | |
{ |
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
CREATE TABLE articles ( | |
id TEXT PRIMARY KEY, | |
created_at TEXT DEFAULT (datetime('now')), | |
title TEXT, | |
content TEXT | |
); |
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
UnJS is awesome! |
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
WITH | |
transfers AS ( | |
SELECT | |
from_owner, | |
from_token_account, | |
to_owner, | |
to_token_account, | |
amount, | |
action, | |
block_time |
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
<div id="editor"> | |
<div id="view"><canvas id="c"></canvas></div> | |
<div id="controls"> | |
<div> | |
<p>various controls | |
would appear here</p> | |
<div>Drag this bar</div> | |
<div>⇐</div> | |
</div> |
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
# resizeObserver | |
If you want to prevent these errors, the solution depends on what your intended effect is. If you actually intend to have an infinite loop, you just need to defer the resizing code in your ResizeObserver callback to after the browser repaints. You can put it into a requestAnimationFrame callback. | |
## 1 | |
```js | |
const divElem = document.querySelector("body > div"); | |
const resizeObserver = new ResizeObserver((entries) => { |
This example demonstrates how to implement a responsive iframe using Observable Framework such that the height of the iframe automatically adjusts to show all of the content without scrolling. This example also demonstrates how to turn off Framework’s additional user interface elements (such as the sidebar) so that the embedded page contains only content.
Try resizing the width of the iframe using the slider below; notice that the height adjusts automatically.
const iframeWidth = view(Inputs.range([200, 640], {step: 1, value: document.querySelector("#observablehq-main").offsetWidth, label: "Width"}));
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
// Run `npm install form-data node-fetch fs dotenv` | |
// | |
// Create a separate .env file with the following variables completed | |
// PINATA_JWT= | |
// CROSSMINT_PROJECT_ID= | |
// CROSSMING_CLIENT_SECRET= | |
// | |
// Read more on how this works at |
NewerOlder