Skip to content

Instantly share code, notes, and snippets.

View CrowderSoup's full-sized avatar
🦄
[object Object]

Aaron Crowder CrowderSoup

🦄
[object Object]
View GitHub Profile
@CrowderSoup
CrowderSoup / random.php
Created August 9, 2012 20:55
PHP Random String Generator
<?php
function get_rand_str($length)
{
$chars = array_merge(range('a','z'), range('A','Z'), array('!','@','#','$','%','&','*'));
$length = intval($length) > 0 ? intval($length) : 16;
$max = count($chars) - 1;
$str = "";
while($length--) {
shuffle($chars);
@CrowderSoup
CrowderSoup / 3colgrid.css
Created June 25, 2012 17:55
Basic 3-col CSS Grid
/**
* This is the most simple 3-col CSS grid I could imagine. It supports 3 columns of equal size with 10px margins. Feel free to modify this as
* you need.
*/
/**
* The row
*/
.row { clear: both; overflow: hidden; margin: 0 0 10px 0; }