Skip to content

Instantly share code, notes, and snippets.

View skatesham's full-sized avatar
🏠
Working from home

Sham skatesham

🏠
Working from home
View GitHub Profile
@skatesham
skatesham / AppWithLocalStorage.vue
Created December 30, 2022 17:27 — forked from lorisleiva/AppWithLocalStorage.vue
Abstraction of the local storage using Vue3's composition API
<script setup>
import useLocalStorage from './useLocalStorage'
const publicKey = useLocalStorage('solana-wallet-public-key')
</script>
<template>
<div>
<input type="text" v-model="publicKey">
<div v-text="publicKey"></div>
</div>
@skatesham
skatesham / StrategyVisitor.java
Last active April 6, 2023 00:33
Pattern Strategy With Visitor Embeded in Enum on Domain Object
package core.chapadaguides;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.ToString;
import java.math.BigDecimal;
import java.util.List;
@skatesham
skatesham / StatePattern.java
Last active April 27, 2023 21:13
State experimental Pattern
package com.sham.vinicius.fiorin;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import java.math.BigDecimal;
import java.util.List;
/**