Skip to content

Instantly share code, notes, and snippets.

Ken Caron kencaron

Block or report user

Report or block kencaron

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
@kencaron
kencaron / jwt_decode
Created May 25, 2018
jwt_decode as ES export (for fitbit OS projects)
View jwt_decode
// Slightly modified from https://github.com/auth0/jwt-decode/blob/master/build/jwt-decode.js
/**
* The code was extracted from:
* https://github.com/davidchambers/Base64.js
*/
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
function InvalidCharacterError(message) {
@kencaron
kencaron / lzw_encoder.js
Created Sep 20, 2016 — forked from revolunet/lzw_encoder.js
LZW javascript compress/decompress
View lzw_encoder.js
// LZW-compress a string
function lzw_encode(s) {
var dict = {};
var data = (s + "").split("");
var out = [];
var currChar;
var phrase = data[0];
var code = 256;
for (var i=1; i<data.length; i++) {
currChar=data[i];
View angular-awesome-slider-2.4.0.js
(function (angular) {
'use strict';
angular.module('angularAwesomeSlider', [])
// DIRECTIVE
.directive('slider', [
'$compile', '$templateCache','$timeout', '$window', 'slider',
function(compile, templateCache, timeout, win, Slider) {
return {
restrict : 'AE',
You can’t perform that action at this time.