This file contains hidden or 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 const fertilityData: Record<string, Record<number, number>> = { | |
// East Asia | |
KOR: { | |
// South Korea | |
1950: 5.05, | |
1955: 4.98, | |
1960: 4.82, | |
1965: 4.7, | |
1970: 4.53, | |
1975: 3.43, |
This file contains hidden or 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 OpenAI from "openai"; | |
import fs from "fs"; | |
const openai = new OpenAI({ | |
baseURL: "https://api.deepseek.com", | |
apiKey: process.env.DEEPSEEK_API_KEY, | |
}); | |
interface ClassificationResult { | |
isSpam: boolean; |
This file contains hidden or 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
- Idea Name: Cybersecurity for AI Companies | |
- Idea Title: High-Level Security for AI Weights | |
- Description: This idea focuses on providing cybersecurity solutions for AI companies to protect their valuable digital assets from theft or espionage. The proposed solution is to build high-level security for AI weights, similar to Chainalysis but for AI. | |
- Categories: Cybersecurity, Artificial Intelligence | |
- Industry: Technology, Security | |
- Tool Suggestions to build: AI-based cybersecurity tools | |
- MVP Plan: Develop a prototype for AI weight security, test it with a few AI companies, and iterate based on feedback. | |
- Idea Name: Moon-Focused Space Startups | |
- Idea Title: Moon Tourism, Mining, and Asset Placement |
This file contains hidden or 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
zerops: | |
- setup: mymeetingavailability | |
# ==== how to build your application ==== | |
build: | |
# what technologies should the build | |
# container be based on (can be an array) | |
base: nodejs@20 | |
# what commands to use to build your app | |
buildCommands: |
This file contains hidden or 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 { vitePlugin as remix } from "@remix-run/dev"; | |
import { defineConfig, type UserConfig } from "vite"; | |
import tsconfigPaths from "vite-tsconfig-paths"; | |
// Related: https://github.com/remix-run/remix/issues/2835#issuecomment-1144102176 | |
// Replace the HOST env var with SHOPIFY_APP_URL so that it doesn't break the remix server. The CLI will eventually | |
// stop passing in HOST, so we can remove this workaround after the next major release. | |
if ( | |
process.env.HOST && | |
(!process.env.SHOPIFY_APP_URL || |
This file contains hidden or 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
zerops: | |
- setup: app | |
build: | |
base: nodejs@22 | |
buildCommands: | |
- yarn install | |
- yarn run build | |
deployFiles: | |
- build | |
- drizzle |
This file contains hidden or 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
// utils.ts | |
export const generatePagination = (currentPage: number, totalPages: number) => { | |
// If the total number of pages is 7 or less, | |
// display all pages without any ellipsis. | |
if (totalPages <= 7) { | |
return Array.from({ length: totalPages }, (_, i) => i + 1); | |
} | |
// If the current page is among the first 3 pages, |
This file contains hidden or 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
"use client"; | |
import { Network, Alchemy } from "alchemy-sdk"; | |
import { ethers } from "ethers"; // ethers V6 | |
const settings = { | |
apiKey: "", // Replace with your Alchemy API Key. | |
network: Network.MATIC_MAINNET, // Replace with your network. | |
}; |
This file contains hidden or 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
server { | |
root /var/www/YOUR_DOMAIN_PATH_NAME/html; | |
index index.html index.htm index.nginx-debian.html; | |
server_name YOUR_DOMAIN; | |
location / { | |
proxy_pass YOUR_SERVER_IP:8080; | |
proxy_http_version 1.1; |
This file contains hidden or 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
/* | |
- yarn init -y | |
- update package.json :) | |
{ | |
"name": "rarity", | |
"version": "1.0.0", | |
"main": "index.js", | |
"license": "MIT", |
NewerOlder