Skip to content

Instantly share code, notes, and snippets.

View zvonicek's full-sized avatar
:octocat:

Petr Zvoníček zvonicek

:octocat:
View GitHub Profile
@zvonicek
zvonicek / truty_filter.rb
Last active August 29, 2015 14:12
Truty filter for Liquid
require 'truty'
module Jekyll
module TrutyFilter
def truty(input)
Truty.fix(input, :czech)
end
end
end
@zvonicek
zvonicek / gist:a91561169a99edf244a3
Last active August 29, 2015 14:01
isShuffle dynamic programming
def isShuffle2(x,y,z):
m = len(x)
n = len(y)
r = len(z)
S = {}
#inicializace pole
for i in range(-1,r+1):
for j in range(-1,r+1):