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
// Let's start by defining the ontology of our universe. | |
const BLEACH_TRANSFERENCE_RATIO = 0.5 | |
class TShirt { | |
constructor() { | |
// By default, a T-shirt is clean. | |
this.stains = [] | |
} |
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
import { useEffect, useRef } from "react"; | |
// Render an SVG Circle Progress set to the provided progress percentage. | |
export const CircleProgress = ({ progress = 0 }) => { | |
const pieElement = useRef(null); | |
// Update SVG every time the progress prop changes. | |
useEffect(() => { | |
pieElement.current.style.setProperty("--progress", progress); | |
}, [progress]); |
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
:root { | |
--PI: 3.14159265358979; | |
} | |
.pie { | |
--progress: 0; | |
--radius: 25; | |
--circumference: calc(2 * var(--radius) * var(--PI)); | |
fill: transparent; | |
stroke: #ced4da; |
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
import { useControls, button } from "leva"; | |
import { ToastContainer, toast } from "react-toastify"; | |
import "react-toastify/dist/ReactToastify.css"; | |
import "./styles.css"; | |
import { CircleProgress } from "./CircleProgress"; | |
import { useEffect } from "react"; | |
export default function App() { | |
const [{ readTime, progress }, set] = useControls(() => ({ | |
readTime: { value: 10 * 1000, label: "Read Time (ms)" }, // Default to 10 seconds |
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
import "./styles.css"; | |
import { useState } from "react"; | |
import Link from "@mui/material/Link"; | |
import { Input } from "./Input"; | |
import { InteractiveStackName } from "./InteractiveStackName"; | |
import { Description } from "./Description"; | |
import { | |
getRandomStackName, | |
sanitizeInputValue, | |
isStackNameValid, |
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
// interface for food | |
interface Food { | |
name: string; | |
calories: number; | |
} | |
// interface for refrigerator | |
interface Refrigerator { | |
food: Food[]; | |
addFood(food: Food): void; |
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
export default function (babel) { | |
return { | |
visitor: { | |
BooleanLiteral(path) { | |
// this code prevents stack overflow | |
// TODO: fix before IPO | |
if (path.parent.type === "ArrayExpression") { | |
return; | |
} |
This file has been truncated, but you can view the full file.
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
{ | |
"Old Testament": { | |
"Genesis": { | |
"1": { | |
"1": "¹ When God began to create the heavens and the earth, ", | |
"2": "² the earth was complete chaos, and darkness covered the face of the deep, while a wind from God swept over the face of the waters. ", | |
"3": "³ Then God said, “Let there be light,” and there was light. ", | |
"4": "⁴ And God saw that the light was good, and God separated the light from the darkness. ", | |
"5": "⁵ God called the light Day, and the darkness he called Night. And there was evening and there was morning, the first day. \n", | |
"6": "⁶ And God said, “Let there be a dome in the midst of the waters, and let it separate the waters from the waters.” ", |
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-name | weekly-downloads | |
---|---|---|
create-gatsby | 385093 | |
create-jest-runner | 185150 | |
create-react-app | 146539 | |
create-next-app | 49849 | |
create-vite | 37876 | |
create-factor-app | 27503 | |
create-graphback | 20793 | |
create-vue | 16412 | |
@eslint/create-config | 16071 |
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
game | steam appid | review_score | review_score_desc | total_positive | total_negative | total_reviews | review_ratio (total_positive/total_negative) | |
---|---|---|---|---|---|---|---|---|
Factorio | 427520 | 9 | Overwhelmingly Positive | 131278 | 1423 | 132701 | 92.25439213 | |
ULTRAKILL | 1229490 | 9 | Overwhelmingly Positive | 32445 | 366 | 32811 | 88.64754098 | |
People Playground | 1118200 | 9 | Overwhelmingly Positive | 132851 | 1501 | 134352 | 88.50832778 | |
Portal 2 | 620 | 9 | Overwhelmingly Positive | 300945 | 3674 | 304619 | 81.91208492 | |
Rhythm Doctor | 774181 | 9 | Overwhelmingly Positive | 15628 | 241 | 15869 | 64.84647303 | |
Portal | 400 | 9 | Overwhelmingly Positive | 109555 | 1724 | 111279 | 63.54698376 | |
RimWorld | 294100 | 9 | Overwhelmingly Positive | 135718 | 2370 | 138088 | 57.2649789 | |
Stardew Valley | 413150 | 9 | Overwhelmingly Positive | 484280 | 9114 | 493394 | 53.13583498 | |
Wobbledogs | 1424330 | 9 | Overwhelmingly Positive | 4247 | 86 | 4333 | 49.38372093 |
OlderNewer