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
const SIMULATIONS = 1000000; | |
let villainDeaths = 0; | |
for (let i = 0; i < SIMULATIONS; i++) { | |
let villainLives = 8; | |
let minionLives = [2, 6, 5]; | |
for (let j = 0; j < 5; j++) { | |
let targets = []; | |
if (villainLives > 0) { |
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 {defineNuxtConfig} from 'nuxt' | |
// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config | |
export default defineNuxtConfig({ | |
modules: ['@nuxtjs/tailwindcss'], | |
css: ['~/assets/css/tailwind.scss'], | |
build: { | |
postcss: { | |
postcssOptions: { | |
plugins: { |
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
module.exports = { | |
plugins: { | |
tailwindcss: {}, | |
autoprefixer: {}, | |
}, | |
} |
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 { defineNuxtConfig } from 'nuxt' | |
// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config | |
export default defineNuxtConfig({ | |
css: ['~/assets/css/tailwind.scss'], | |
build: { | |
postcss: { | |
postcssOptions: require('./postcss.config.js'), | |
} | |
} |
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
{ | |
"private": true, | |
"scripts": { | |
"dev": "nuxi dev", | |
"build": "nuxi build", | |
"start": "node .output/server/index.mjs", | |
"send": "git commit -am 'update' && git push" | |
}, | |
"devDependencies": { | |
"autoprefixer": "^10.4.12", |
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 Image from "next/image"; | |
import useSWR from "swr"; | |
import {useInView} from "react-intersection-observer"; | |
const fetcher = (url) => fetch(url).then((res) => res.json()) | |
export default function Collection({name, items, slug}) { | |
const {ref, inView} = useInView({ | |
rootMargin: '500px', | |
triggerOnce: true, |
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
<!DOCTYPE html> | |
<html lang="en"> | |
{{ partial:head }} | |
<body class="font-sans antialiased"> | |
{{ yield:after_body }} | |
<div id="main" @dragover.prevent @drop.prevent> | |
<the-header | |
:transparent="Boolean({{ alternate_header }})" | |
{{ if show_notice }} | |
:notice="{text: '{{ notice | smartypants }}', target: '{{ notice_target }}', color: '{{ notice_color }}'}" |
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
<!DOCTYPE html> | |
<html lang="en"> | |
{{ partial:head }} | |
<body class="font-sans antialiased"> | |
{{ yield:after_body }} | |
<div id="main" @dragover.prevent @drop.prevent> | |
<the-header | |
:transparent="Boolean({{ alternate_header }})" | |
{{ if show_notice }} | |
:notice="{text: '{{ notice | smartypants }}', target: '{{ notice_target }}', color: '{{ notice_color }}'}" |
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 axios from "axios" | |
import _ from "lodash" | |
import * as cheerio from "cheerio" | |
export default async function handler(req, res) { | |
const {address, start, end} = req.query | |
const tokenIds = _.range(start, end) | |
const urls = tokenIds.map((tokenId) => polygonScanUrlGenerator(address, tokenId)) |
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 axios from "axios" | |
import _ from "lodash" | |
import * as cheerio from "cheerio" | |
export default async function handler(req, res) { | |
const {address, start, end} = req.query | |
const tokenIds = _.range(start, end) | |
const urls = tokenIds.map((tokenId) => polygonScanUrlGenerator(address, tokenId)) |
NewerOlder