Skip to content

Instantly share code, notes, and snippets.

@0x0dea
Created July 15, 2015 08:51
Show Gist options
  • Save 0x0dea/2df6c43f4f422884216b to your computer and use it in GitHub Desktop.
Save 0x0dea/2df6c43f4f422884216b to your computer and use it in GitHub Desktop.
def play_pass str, n
-> ψ, Φ {
_ = $$ / $$
α = [*?@...?[][_..-_]*''*(_+_)
δ = [*?/...?:][_..-_]*''
Σ = ''
(λ = -> Θ {
ξ = ψ[Θ]
Σ = ((φ = α =~ /#{ξ}/) ?
(Θ&_<_ ?α:[*?`...?{][_..-_]*(_+_) )[φ+Φ] :
(φ = δ =~ /#{ξ}/) ?
"#{(δ=~/$/)-φ-_}" : ξ) + Σ
ψ[Θ+=_] ? λ[Θ] : Σ
})[$.]
}[str, n]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment