Skip to content

Instantly share code, notes, and snippets.

View wesleymoliveira's full-sized avatar
🎯
📚

Wesley M Oliveira wesleymoliveira

🎯
📚
View GitHub Profile
@wesleymoliveira
wesleymoliveira / strapi.types.d.ts
Created January 20, 2025 22:13
Strapi v5 types for auto-generated typescipt
import type { Schema, Utils, UID } from '@strapi/strapi';
import { Attribute } from '@strapi/types/dist/schema/attribute';
import { ComponentAttribute, DynamicZoneAttribute, RelationalAttribute } from '@strapi/utils/dist/types';
//https://docs.strapi.io/dev-docs/typescript/development/guides/documents-and-entries
export type ID = `${number}` | number;
export type BooleanValue = boolean | 'true' | 'false' | 't' | 'f' | '1' | '0' | 1 | 0;
export type NumberValue = string | number;
export type DateValue = Schema.Attribute.DateValue | number;
@wesleymoliveira
wesleymoliveira / index.html
Created September 5, 2022 14:07
basic html + Polkadot-JS API to interact with the blockchain
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Quick start: Get Balance</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<style>
body {