RUN v1.6.0/home/ham/dev/root-loops/snippets✓ test.js > root loops color generator > pours milk into the bowl
✓ test.js > root loops color generator > adds unhealthy amounts of sugar
✓ test.js > root loops color generator > includes worrying amounts of artificial flavours
✓ test.js > root loops color generator > lets the bowl sit for maximum sogginess
× test.js > root loops color generator > adds fresh fruit
→ expected true to be false // Object.is equality
Test Files 1 failed (1)
Tests 1 failed | 4 passed | 1 todo (6)
Start at 11:03:14
Duration 604ms (transform 43ms, setup 0ms, collect 18ms, tests 16ms, environment 0ms, prepare 125ms)
⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯ FAIL test.js > root loops color generator > adds fresh fruit
AssertionError: expected true to be false // Object.is equality
- Expected
+ Received
- false
+ true
❯ test.js:21:18 19| 20| it("adds fresh fruit", () => {
21| expect(true).toBe(false); | ^ 22| }); 23| ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
loops@cereal:~/dev/root-loops$ █
loops@cereal:~/dev/root-loops$ bat -p --theme ansi python.py
from flask import Flask
app = Flask(__name__)
@app.route("/")
defhello_world():
return"<p>Hello, World!</p>"# we can have comments, too
@app.route("/me")
defme_api():
user = get_current_user()
return {
"username": user.username,
"theme": user.theme,
"image": url_for("user_image", filename=user.image),
}
@app.route("/users")
defusers_api():
users = get_all_users()
return [user.to_json() for user in users]
loops@cereal:~/dev/root-loops$ █
loops@cereal:~/dev/root-loops$ bat -p --theme ansi typescript.ts
import express, { Express, Request, Response } from"express";
const app: Express =express();
const port = process.env.PORT ||3000;
app.get("/", (_req: Request, res: Response) => {
res.send("Hello, World!");
});
// we can have comments, too
app.listen(port, () => {
console.log("[server]: Server is running at http://localhost:"+ port);
});
loops@cereal:~/dev/root-loops$ █
loops@cereal:~/dev/root-loops$ bat -p --theme ansi elixir.ex
defmoduleHelloWeb.ProductControllerdouseHelloWeb, :controlleraliasHello.CatalogaliasHello.Catalog.Product# we can have comments, toodefindex(conn, _params) do
products =Catalog.list_products()
render(conn, :index, products: products)
enddefnew(conn, _params) do
changeset =Catalog.change_product(%Product{})
render(conn, :new, changeset: changeset)
enddefcreate(conn, %{"product"=> product_params}) docaseCatalog.create_product(product_params) do
{:ok, product} ->
conn
|> put_flash(:info, "Product created successfully.")
|> redirect(to:~p"/products/#{product}")
{:error, %Ecto.Changeset{} = changeset} ->
render(conn, :new, changeset: changeset)
endenddefshow(conn, %{"id"=> id}) do
product =Catalog.get_product!(id)
render(conn, :show, product: product)
endend
loops@cereal:~/dev/root-loops$ █
loops@cereal:~/dev/root-loops$ bat -p --theme ansi rust.rs
use actix_web::{get, web, App, HttpServer, Responder};
#[get("/")]
async fnindex() -> impl Responder {
"Hello, World!"
}
// we can have comments, too
#[get("/{name}")]
async fnhello(name: web::Path<String>) -> impl Responder {
format!("Hello {}!", &name)
}
#[actix_web::main]
async fnmain() -> std::io::Result<()> {
HttpServer::new(|| App::new().service(index).service(hello))
.bind(("127.0.0.1", 8080))?
.run()
.await
}
loops@cereal:~/dev/root-loops$ █
Export
Wow, that's a gorgeous color scheme you've got there 😍!
Export it to your terminal emulator of choice by copying the snippet below and pasting it
into your terminal emulator's configuration file. If your favorite terminal emulator isn't
supported yet, you can copy the individual colors by clicking on the cereals above.