Skip to content

Instantly share code, notes, and snippets.

Jeffrey Barke jeffreybarke

Block or report user

Report or block jeffreybarke

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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) {
@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)
{
You can’t perform that action at this time.