Skip to content

Instantly share code, notes, and snippets.

View vpontis's full-sized avatar
🌊

Victor Pontis vpontis

🌊
View GitHub Profile
import { z } from "zod";
const ConfigBase = z.object({
name: z.string(),
});
const FreeConfig = ConfigBase.extend(
z.object({
type: z.literal("free"),
min_cents: z.null(),
➜ web next-issues ✗ yd
$ SENTRY_IGNORE_API_RESOLUTION_ERROR=1 NEXT_PUBLIC_WEB_HOST=localhost:5499 NEXT_WEBPACK_LOGGING=1 next -p 5499
▲ Next.js 15.2.1
- Local: http://localhost:5499
- Network: http://192.168.1.154:5499
- Experiments (use with caution):
✓ scrollRestoration
· clientTraceMetadata
✓ Starting...
[
{
"english": "Image",
"translated": "Ảnh"
},
{
"english": "Sunglasses",
"description": "Name for the sunglasses emoji as the emoji theme.",
"translated": "Kính râm"
},
{
"mint_address": "DFnBmD4HvuEq2DuefNjJQmeamBwR3QjCbFjSwnd5meyz",
"name": "Christmas Crate 2021",
"symbol": "",
"uri": "https://arweave.net/Kdj8ISa58PStAQgUj6vUvlxvfuotcOW0LaX6iJIEuu4",
"seller_fee_basis_points": 1000,
"creators": [
{
"address": "6jHbPEmLFuixLmyTDBzjwPDiTcWGbdJ3P9ewCtBP9dW9",
"verified": true,
diff --git a/next/utils/upload-file-to-s3.ts b/next/utils/upload-file-to-s3.ts
index c8374943b..5e9d4ef37 100644
--- a/next/utils/upload-file-to-s3.ts
+++ b/next/utils/upload-file-to-s3.ts
@@ -1,4 +1,4 @@
-import { S3Bucket, S3FolderName } from "@luma-team/shared";
+import { S3Bucket, S3FolderName, sleep } from "@luma-team/shared";
import axios from "axios";
import { ZmClient } from "./ZmClient";
{
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Somehow I stopped writing this update. One week, I decided not to send an update and that cascaded for over two months. So after not missing a week for nearly 2 years, I missed 10 of them… Oh well. "
}
@vpontis
vpontis / VICTOR.md
Last active August 16, 2021 17:10
me
  __      _
o'')}____//
 `_/      )
 (_(_/-(_/          

lu.ma

@vpontis
vpontis / quine.py
Created May 22, 2019 14:33
A Program That Prints Itself
A = [
"A = [",
"]",
"def f():",
" print(A[0])",
" for v in A:",
" print(chr(34) + v + chr(34) + ',')",
" print(A[1])",
" for v in A[2:]:",
" print(v)",
@vpontis
vpontis / strobe_light.htm
Created April 27, 2019 21:09
Strobe Light
<html><head>
<title>Strobe</title>
<script>
function toggleBgColor()
{
document.bgColor = document.bgColor == '#ffffff' ? '#000000' : '#ffffff';
setTimeout('toggleBgColor()', 75); //in milliseconds
}
</script>