Skip to content

Instantly share code, notes, and snippets.

@loganyu
loganyu / picketCall.tsx
Last active October 25, 2023 21:20
picket call
import Picket from '@picketapi/picket-js';
const picket = new Picket('pk_ac1b6617968c8222da71ca5482152508');
const chains = [
'solana',
'ethereum',
'polygon',
'optimism',
'arbitrum',
@loganyu
loganyu / gitconfig
Created December 23, 2022 02:39
gitconfig
[color]
ui = true
[user]
name = Logan Yu
email = [email protected]
[alias]
co = checkout
br = branch
ci = commit
st = status
@loganyu
loganyu / longest_palindromic_substring.rb
Created March 23, 2019 22:06
Longest Palindromic Substring
# Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.
# Example 1:
# Input: "babad"
# Output: "bab"
# Note: "aba" is also a valid answer.
# Example 2:
# Input: "cbbd"
@loganyu
loganyu / nbr_open_number_of_runners.html
Last active January 9, 2019 05:33
NBR Open Number of Runners
<!DOCTYPE html>
<html>
<head>
<title>Open Number of Runners | amCharts</title>
<meta name="description" content="chart created using amCharts live editor" />
<!-- amCharts javascript sources -->
<script type="text/javascript" src="https://www.amcharts.com/lib/3/amcharts.js"></script>
<script type="text/javascript" src="https://www.amcharts.com/lib/3/serial.js"></script>
#include <stdio.h>
#include <cs50.h>
int main(void)
{
bool repeat;
do {
repeat = false;
@loganyu
loganyu / cat.js
Created December 9, 2013 14:07
cat cat
jkdjl jfkldj jkfdjl s s