Skip to content

Instantly share code, notes, and snippets.

View jeffreybarke's full-sized avatar

Jeffrey Barke jeffreybarke

View GitHub Profile
@jeffreybarke
jeffreybarke / ci-encryption-key-generator.php
Created April 9, 2013 17:21
This is the code I use (minus Google Analytics) for the CodeIgniter encryption key generator located at http://jeffreybarke.net/tools/codeigniter-encryption-key-generator/
<?php
/**
* Generate an encryption key for CodeIgniter.
* http://codeigniter.com/user_guide/libraries/encryption.html
*/
// http://www.itnewb.com/v/Generating-Session-IDs-and-Random-Passwords-with-PHP
function generate_token ($len = 32)
{
@jeffreybarke
jeffreybarke / html5Ol.js
Created February 24, 2012 02:16 — forked from Zirak/a.js
ol reverse attribute polyfill
//use this if you want support for browsers which don't have ES5 goodies
if (!('reversed' in document.createElement('ol'))) {
(function () {
var lists = document.getElementsByTagName('ol'),
i = 0,
len = lists.length,
reverseList = function (list) {