Skip to content

Instantly share code, notes, and snippets.

View niklasp's full-sized avatar
💥
2024 let's go steppin

Niklas P niklasp

💥
2024 let's go steppin
View GitHub Profile
{
"nfts": [
{
"isSigned": false,
"method": {
"args": {
"collection": "101",
"item": "588,278,458",
"mint_to": {
"Id": "GkQJko5bSB32BBexZMD3H9kbvaopFT4tFn6xN9F6evkwQnx"
nfts.collection: Option<PalletNftsCollectionDetails>
[
[
[
100
]
{
owner: Fksmad33PFxhrQXNYPPJozgWrv82zuFLvXK7Rh8m1xQhe98
ownerDeposit: 100,000,000,000
items: 0
This file has been truncated, but you can view the full file.
{
"nfts": [
{
"isSigned": false,
"method": {
"args": {
"collection": "101",
"item": "135,796,623",
"mint_to": {
RPC-CORE: call(method: Text, data: Bytes, at?: BlockHash): Bytes:: -32000: Client error: Execution failed: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed
WASM backtrace:
error while executing at wasm backtrace:
0: 0x4261a - <unknown>!rust_begin_unwind
1: 0x4a60 - <unknown>!core::panicking::panic_fmt::he4489d678d6570d5
2: 0xafe88 - <unknown>!TransactionPaymentApi_query_info
Trace: RpcError: -32000: Client error: Execution failed: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed
WASM backtrace:
error while executing at wasm backtrace:
0: 0x4261a - <unknown>!rust_begin_unwind
//Collection ID: 97
//Item id: 2583060150
//Kodadot URL: https://kodadot.xyz/ahk/gallery/97-2583060150
//extrinsic: nfts.attribute: Option<(Bytes,PalletNftsAttributeDeposit)>
[
[
[
97
2,583,060,150
@niklasp
niklasp / polkadot-brand-colors.css
Last active February 22, 2023 19:16
Copy and paste all polkadot brand colors as css variables
:root {
--polkadot-pink: #e6007a;
--polkadot-purple: #552BBF;
--polkadot-cyan: #00B2FF;
--polkadot-lime: #D3FF33;
--polkadot-green: #56F39A;
}
/* Scroll Velocity */
document.addEventListener( 'wheel', ( e ) => {
e.preventDefault()
this.scrollTarget = e.deltaY / 3
} );
//render()
this.direction = this.scroll > 0 ? -1 : 1
this.scroll -=(this.scroll - this.scrollTarget)*0.1
initLg() {
if ( ! this.swiperSettings.hasLg ) {
return;
}
const dynamicEl = [ ...this.domSlides ].reduce( ( result, domSlide ) => {
let lgElement;
@niklasp
niklasp / gs5excerpt.js
Created May 27, 2021 14:51
gs5 lightgallery2
const gsBgImgSelector = '.wp-block-eedee-block-gutenslider .eedee-background-div img';
const dynamicEl = [ ...el.querySelectorAll( gsBgImgSelector ) ].map( ( sliderImg ) => {
return {
src: sliderImg.src,
thumb: sliderImg.src,
subHtml: '<h4>Image 1 title</h4><p>Image 1 descriptions.</p>',
};
});
@niklasp
niklasp / vertex.glsl
Last active April 5, 2021 15:03
perlin3d cnoise vertex shader
// the shader is applied to each point forming an object
// in parallel by the gpu
// Classic Perlin 3D Noise
// by Stefan Gustavson
//
vec4 permute(vec4 x){return mod(((x*34.0)+1.0)*x, 289.0);}
vec4 taylorInvSqrt(vec4 r){return 1.79284291400159 - 0.85373472095314 * r;}
vec3 fade(vec3 t) {return t*t*t*(t*(t*6.0-15.0)+10.0);}