Skip to content

Instantly share code, notes, and snippets.

@Akeboshiwind
Akeboshiwind / heavy-hitters.clj
Last active July 27, 2018 20:03
Heavy Hitters algorithm
(defn heavy-hitter
"Output the lement in the list that came up more than 50% of the time, nil otherwise."
[lst]
(let [heavy (heavy-hitter* lst)]
(when (->> lst
(filter (partial = heavy))
(count)
(<= (/ (count lst) 2)))
heavy)))
@Akeboshiwind
Akeboshiwind / .cVimrc
Last active August 12, 2019 09:38
cVim settings
"! Remember to reload all tabs after changing
" Auto update settings from this gist
set autoupdategist
" Turn on smoothscroll and slow it down
set smoothscroll
let scrollduration=300
" Try to not let the webpage grap focus
set noautofocus
@Akeboshiwind
Akeboshiwind / about.md
Last active July 20, 2016 20:14 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
Private ID As Integer
Private DateDate As Date
Private Period As Integer
Private Duration As Integer
Private Repetitions As Integer
Public Sub Construct(c_ID As Integer)
ID = c_ID
Me.LoadData