Skip to content

Instantly share code, notes, and snippets.

View TomLisankie's full-sized avatar

Thomas Lisankie TomLisankie

View GitHub Profile
@TomLisankie
TomLisankie / MetaplexDisplay.md
Created October 11, 2021 21:07
Steps for Metaplex NFT Display

So you want to display a Metaplex NFT

This guide will attempt to give an overview of the technical/coding steps that are required to render a Metaplex NFT with any programming language/platform. I'll attempt to write it a programming language-agnostic manner; you'll need to fill in the particular methods of performing the steps with your coding language of choice.

For the purposes of discussion, we'll call the Solana account that holds the Metaplex NFTs the "NFT-Account."

Step 1: Call getTokenAccountsByOwner

The first thing you need to do is call the getTokenAccountsByOwner JSON RPC method as documented here:

@TomLisankie
TomLisankie / System Design.md
Created February 1, 2020 22:00 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@TomLisankie
TomLisankie / longestSubstringWithoutRepeatingCharacters.js
Last active January 15, 2020 03:12 — forked from tombaranowicz/longestSubstringWithoutRepeatingCharacters.js
2 ways of solving "Longest Substring Without Repeating Characters" problem in JavaScript
//SLIDING WINDOW METHOD
var lengthOfLongestSubstring = function(s) {
let count = 0;
let i = 0;
let j = 0;
let end = s.length;
let set = new Set();
@TomLisankie
TomLisankie / min-char-rnn.py
Created June 24, 2018 16:35 — forked from karpathy/min-char-rnn.py
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)