A Pen by lakasitosfm on CodePen.
Discover gists
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 type { SolanaSignInInput, SolanaSignInOutput } from '@solana/wallet-standard-features' | |
import { verifySignIn } from '@solana/wallet-standard-util' | |
import { type BetterAuthPlugin, type User, setSessionCookie } from 'better-auth' | |
import { APIError, createAuthEndpoint } from 'better-auth/api' | |
import { addMinutes, isBefore } from 'date-fns' | |
import { ulid } from 'ulid' | |
import z from 'zod' | |
// based on SIWS (https://github.com/phantom/sign-in-with-solana) |
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"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Website Test 1</title> | |
<link rel="stylesheet" href="css/style.css"> | |
</head> |
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
2025-02-11 19:37:53,765 4876 [DEBUG] - XmlConfiguration is now operational | |
2025-02-11 19:37:55,983 4876 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco' | |
2025-02-11 19:37:55,998 4876 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco' | |
2025-02-11 19:37:56,031 4876 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco' | |
2025-02-11 19:37:56,066 4876 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco' | |
2025-02-11 19:37:56,081 4876 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco' | |
2025-02-11 19:37:56,129 4876 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco' | |
2025-02-11 19:37:56,201 4876 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco' | |
2025-02-11 19:37:56,485 4876 [DEBUG] - Adding new typ |
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
namespace IJuniorConsole; | |
public class Program | |
{ | |
private static void Main(string[] args) | |
{ | |
Shop shop = new Shop("Всё по 42"); | |
Seller seller = new("Кирилл", new[] { new Commodity("Кружка", 42), new Commodity("Расчёска", 42), new Commodity("Книга", 42), new Commodity("Конфета", 42), new Commodity("Головка от штатива SLIK-U6000 Б/У", 42) }); | |
Buyer buyer = new("Гена", 210); | |
shop.Serve(seller, buyer); |
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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.4.22 <0.9.0; | |
library TestsAccounts { | |
function getAccount(uint index) pure public returns (address) { | |
return address(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
Script started on 2025-02-11 19:24:51+00:00 [COMMAND="/home/ludovic/nuttx-release/run-job.sh sim-03" <not executed on terminal>] | |
Now running https://github.com/lupyuen/nuttx-release/blob/main/run-job.sh | |
Called by https://github.com/lupyuen/nuttx-release/blob/main/run-ci.sh | |
+ job=sim-03 | |
+ neofetch | |
.-/+oossssoo+/-. | |
`:+ssssssssssssssssss+:` | |
-+ssssssssssssssssssyyssss+- | |
.ossssssssssssssssssdMMMNysssso. | |
/ssssssssssshdmmNNmmyNMMMMhssssss/ |
The key reason for wanting schemafull JSON alongside object types in EdgeDB comes down to proper modeling of composite values that share their lifecycle with a parent entity. Let me explain with a concrete example:
Consider a Setting
resource that looks like this:
{
"id": "e2ba936c-fdfd-4873-8732-fb748e3f7f94",
"isActive": true,
"memberId": "member1",
"workspaceId": "workspace1",
"trigger": {
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 com.model; | |
import jakarta.persistence.*; | |
/** | |
* Entity representing an address. | |
*/ | |
@Entity | |
public class Address { |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: dnsquery | |
labels: | |
app: dnsquery | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: |