Skip to content

Instantly share code, notes, and snippets.

View kigsmtua's full-sized avatar
🚢
shipping

John Kiragu kigsmtua

🚢
shipping
View GitHub Profile
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod
def Solution(s):
to_delete = 0
i = 0
n = len(s)
while i < n-1:
current_char = s[i]
next_character = s[i+1]
if current_char == 'A' and next_character != 'A' and s[i+2] == 0:
to_delete +=1
@kigsmtua
kigsmtua / something.hs
Created February 14, 2020 15:32
Implemeting something to do with the haskell codebase here
import Data.List
@kigsmtua
kigsmtua / spell.hs
Created May 15, 2018 11:36
How to Write a Spelling Corrector in Haskell (Based on Norvig's article)
from