Skip to content

Instantly share code, notes, and snippets.

View CodeZombie's full-sized avatar
🌵

Jeremy Clark CodeZombie

🌵
View GitHub Profile
<!-- 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 {
@CodeZombie
CodeZombie / rainbowirc.py
Last active January 24, 2016 01:31
rainbow text for Jenni irc bots .py command
.py global t; t='YOUR TEXT HERE'; print ''.join('' + str(divmod(n,14)[1]+1) + t[n] for n in range(0,len(t)))
@CodeZombie
CodeZombie / slug
Created April 3, 2015 00:50
Ruby Slug Generator
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