This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- this good thing was written by Cazum (zombiearmy.net) in April, 2015. released under the WTFPL.--> | |
| <html> | |
| <head> | |
| <meta name="viewport" content="initial-scale=1"> | |
| <style> | |
| * { | |
| box-sizing: border-box; | |
| } | |
| .grid { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .py global t; t='YOUR TEXT HERE'; print ''.join('' + str(divmod(n,14)[1]+1) + t[n] for n in range(0,len(t))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def createSlug(title) | |
| maxlength = 35 | |
| title = title.gsub(' ', '-').gsub(/[^\w-]/, '').gsub(/(-){2,}/, '-').downcase | |
| return title[0, title.length > maxlength ? (title[0, maxlength].rindex('-') or maxlength) : maxlength] | |
| end |
NewerOlder