Skip to content

Instantly share code, notes, and snippets.

View cfjedimaster's full-sized avatar
😺
Happy, and tired.

Raymond Camden cfjedimaster

😺
Happy, and tired.
View GitHub Profile
async function downloadFile(url, filePath) {
let res = await fetch(url);
const body = Readable.fromWeb(res.body);
const download_write_stream = fs.createWriteStream(filePath);
return await finished(body.pipe(download_write_stream));
}
{
"version": "2.10.2",
"size": {
"width": 2048,
"height": 2048
},
"predictedContentClass": "art",
"outputs": [
{
"seed": 1613067352,
async function textToImage(prompt, id, token) {
let body = {
"n":4,
prompt
}
let req = await fetch('https://firefly-api.adobe.io/v2/images/generate', {
method:'POST',
headers: {
{
"prompt":"a stack of papers on top of a desk",
"n":4
}
async function getAccessToken(id, secret) {
const params = new URLSearchParams();
params.append('grant_type', 'client_credentials');
params.append('client_id', id);
params.append('client_secret', secret);
params.append('scope', 'openid,AdobeID,session,additional_info,read_organizations,firefly_api,ff_apis');
let resp = await fetch('https://ims-na1.adobelogin.com/ims/token/v3',
{
method: 'POST',
/* Set our creds based on environment variables. */
const CLIENT_ID = process.env.CLIENT_ID;
const CLIENT_SECRET = process.env.CLIENT_SECRET;
```json
{
"recommendations": [
{
"name": "Saga",
"publisher": "Image Comics",
"reason": "Saga is a space opera with a diverse cast of characters, including many strong and complex women. It explores themes of family, war, and love in a unique and imaginative way."
},
{
"name": "Y: The Last Man",
```json
{
"answer": "Light exhibits a dual nature, behaving both as a wave and as a particle. This phenomenon is known as wave-particle duality.
**Wave Nature of Light:**
* **Diffraction and Interference:** Light waves can bend around obstacles and interfere with each other, creating patterns like those seen in a double-slit experiment.
* **Polarization:** Light waves can be polarized, meaning their vibrations can be restricted to a specific plane.
**Particle Nature of Light:**
## The Nature of Light: A Duality
Light, that fascinating phenomenon that illuminates our world, has a complex and intriguing nature. It exhibits properties of both **waves and particles**, a concept known as **wave-particle duality**.
**Light as a Wave:**
* **Diffraction and Interference:** Light waves can bend around obstacles and interfere with each other, creating patterns like those seen in a rainbow or through a prism. This behavior is characteristic of waves and is explained by the **wave theory of light**.
* **Electromagnetic Spectrum:** Light is a form of electromagnetic radiation, which exists as a continuous spectrum of wavelengths, including radio waves, microwaves, infrared, visible light, ultraviolet, X-rays, and gamma rays.
**Light as a Particle:**
There are 595 items in the log.
ip browser location ref time
========================================================================================================================================================================================
76.72.11.67 Edge 123, Windows 10 Lafayette, Louisiana, United States
196.240.58. Vivaldi 5, Linux i686 Paris, Île-de-France, France https://www.raymondcamden.com/
182
196.199.40. PHP/5.3.87