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
class Logger: | |
"""Logger provides logging of table-structured data. | |
The first column provided must be interpretable as a title. You may provide | |
a 'formatting function' for each column that formats values corresponding | |
to that column. | |
>>> logger = Logger({ | |
... 'Film Title': None, | |
... 'Running Time': lambda x: '{} hours'.format(round(x, 2)), | |
... 'Rating': lambda x: '⭐️' * x, |
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
package main | |
import ( | |
"fmt" | |
"image" | |
"log" | |
"os" | |
"path/filepath" | |
"strings" |
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
"""Welcome to Pynecone! This file outlines the steps to create a basic app.""" | |
# Import pynecone. | |
from datetime import datetime | |
import pcconfig | |
import pynecone as pc | |
from pynecone.base import Base | |
docs_url = "https://pynecone.io/docs/getting-started/introduction" |
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
/** | |
* Transforms a stream of bytes (Uint8Array) into 32-bit float arrays (Float32Array). | |
* | |
* This transformer is needed to convert audio data from an HTTP response body | |
* (ReadableStream<Uint8Array>) into the format required by the Web Audio API | |
* (ReadableStream<Float32Array>). | |
* | |
* The transformer buffers incoming bytes until it has enough to create complete | |
* 32-bit floats (4 bytes each). Any remaining bytes at the end that don't form | |
* a complete float (1-3 bytes) are discarded to maintain data integrity. |
OlderNewer