Skip to content

Instantly share code, notes, and snippets.

View peterschussheim's full-sized avatar

Peter Schussheim peterschussheim

View GitHub Profile
@peterschussheim
peterschussheim / Persistence of a number.carbide.md
Last active September 4, 2016 16:26
Persistence of a number

Chapter 4

evenLast

This Gist

@peterschussheim
peterschussheim / Map character frequency to character.carbide.md
Last active October 6, 2016 21:22
Map character frequency to character

Map character frequency to character

@peterschussheim
peterschussheim / little.js
Created September 21, 2016 19:14
// The Little JavaScripter // http://www.crockford.com/javascript/little.js // Copyright 2003 Douglas Crockford. All rights reserved wrrrld wide. // May 4, 2011 // Produce a printable presentation of an s-expression
function p(x) {
var r;
if (isList(x)) {
r = '(';
do {
r += p(car(x)) + ' ';
x = cdr(x);
} while (isList(x));
if (r.charAt(r.length - 1) === ' ') {
r = r.substr(0, r.length - 1);

removeSmallest