Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeffrey Barke jeffreybarke

View GitHub Profile
@jeffreybarke
jeffreybarke / ci-encryption-key-generator.php
Created Apr 9, 2013
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/
View ci-encryption-key-generator.php
<?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 Feb 24, 2012 — forked from Zirak/a.js
ol reverse attribute polyfill
View html5Ol.js
//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) {
You can’t perform that action at this time.