Skip to content

Instantly share code, notes, and snippets.

View joe-sharp's full-sized avatar
🧙‍♂️
10.846.000

Joe Sharp joe-sharp

🧙‍♂️
10.846.000
View GitHub Profile
@joe-sharp
joe-sharp / memento.rb
Last active November 26, 2020 18:19
Memento Design Pattern in Ruby
class Memento
attr_accessor :state
def initialize(state)
@state = state
end
end
class Caretaker
attr_reader :memento
@joe-sharp
joe-sharp / easter_egg.js
Last active September 8, 2021 03:45
Easter Egg on Personal Website
const keyboard_pic = document.querySelector('div#home-card img')
const keyCode = "ASDFU"
let keyStack = ""
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function rgbKeyboard() {
keyboard_pic.src = "images/keyboard-lit.jpg"
@joe-sharp
joe-sharp / joe-style.zsh-theme
Last active October 21, 2021 21:08
My personal antigen themes
: ${omg_ungit_prompt:=$PS1}
: ${omg_second_line:="%B%F{6}%~%f%b 🔮%B%F{235}❯%F{55}❯%F{27}❯%f%b "}
: ${omg_is_a_git_repo_symbol:=''}
: ${omg_has_untracked_files_symbol:=''}
: ${omg_has_adds_symbol:=''}
: ${omg_has_deletions_symbol:=''}
: ${omg_has_cached_deletions_symbol:=''}
: ${omg_has_modifications_symbol:=''}
: ${omg_has_cached_modifications_symbol:=''}
: ${omg_ready_to_commit_symbol:=''}