?) If you're reading this, I'm sorry for you but it is already too late. I invite you to go outside and watch a tree grow.
Better hurry up.
?) If you're reading this, I'm sorry for you but it is already too late. I invite you to go outside and watch a tree grow.
Better hurry up.
// Put in your username here. This will scrape only your posts. | |
let userName = 'username'; | |
// Builds a list of posts on your timeline into an array | |
let list = document.querySelectorAll('[data-testid="cellInnerDiv"]'); | |
// Go through each post. | |
list.forEach((e) => { | |
// Get the inner Text and the date | |
let post = e.querySelector('[data-testid="tweetText"]')?.innerText; |
[ | |
{ | |
"id": "1695376459240460445", | |
"thread": "end", | |
"date": "2023-08-26T10:03:41.000Z", | |
"post": "Saying no brings me torment. There are characters that are demanding a voice but I cant let them out anymore. No one wants them. But I cant forget them because theyre knocking things over and I simply cant focus. The internal screaming has been a lot! I love you all!" | |
}, | |
{ | |
"id": "1695374322951434387", | |
"thread": null, |
prompt: write a grid component that has 4 rows and 7 columns and fill them with numbers like a calendar. Add a row on top with days. Have the month/year on top as well as two buttons that allow a user to go forward and backwards. Update the days when the month changes.
Sure, here is your Svelte grid calendar component:
<script>
import { onMount, onDestroy } from 'svelte';
let month = new Date().getMonth();
let year = new Date().getFullYear();
prompt: write a grid component that has 4 rows and 7 columns and fill them with numbers like a calendar. Add a row on top with days. Have the month/year on top as well as two buttons that allow a user to go forward and backwards.
Here is how you might create a basic static layout for this calendar. It uses CSS Grid for layout. This example does not include logic for populating the grid with the actual days of the month, or changing the month or year.
<script>
let date = new Date();
let month = date.getMonth();
let year = date.getFullYear();
prompt: write a grid component that has 4 rows and 7 columns and fill them with numbers like a calendar. Add a row on top with days
Here is the Svelte component that represents a Grid and has 4 rows and 7 columns filled with numbers from a calendar:
<script>
let days = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
let calendar = [];
let day = 1;
for (let i = 0; i < 4; i++) {
prompt: write a grid component that is filled by a 4x7 row of numbers
Sure, here's a simple example of a 4x7 grid component using Svelte.
<script>
let grid = Array(28).fill().map((v, i) => i + 1);
let rows = Array(4).fill().map((v, i) => grid.slice(i*7, i*7 + 7));
prompt: write a calendar component that uses the css grid to format the visual style of the calendar
Sure, here's a basic example of a Svelte calendar component that utilizes the CSS grid:
<script>
import { onMount } from 'svelte';
let days = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
let dates = [];
prompt: write a calendar component
A basic calendar component in Svelte could look something like:
<script>
let date = new Date();
let days = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
let monthDays = new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate();
prompt: write a movie about barbie and oppenheimer
Title: "Barbie and the Bomb"
Movie plot: "Barbie and the Bomb" is a fictional drama, where the worlds of science and fashion collide. Barbie, depicted by Reese Witherspoon (https://en.wikipedia.org/wiki/Reese_Witherspoon), renowned for her versatility as an actor, leads the film with her compelling performance. J. Robert Oppenheimer, the Father of the Atomic Bomb, is portrayed by Oscar-winner Anthony Hopkins (https://en.wikipedia.org/wiki/Anthony_Hopkins), acclaimed for his intense and singular performances.
Set across New Mexico (https://en.wikipedia.org/wiki/New_Mexico) and Malibu (https://en.wikipedia.org/wiki/Malibu,_California), the movie narrates the birth of atomic power and the simultaneous rise of an unexpected fashion empire.
As the United States is entrenched in developing nuclear power during WWII, charismatic physicist Oppenheimer leads the Manhattan Project in the remote desert of Los Alamos, New Mexico. Meanwhile, on the s