Skip to content

Instantly share code, notes, and snippets.

View kkazuo's full-sized avatar

Koga Kazuo kkazuo

View GitHub Profile
@tlrobinson
tlrobinson / base64.clj
Created September 17, 2017 08:12
clojure base64 encode and decode for Java 8
(defn- decode-base64
[input]
(new java.lang.String (.decode (java.util.Base64/getDecoder) input) "utf-8"))
(defn- encode-base64
[input]
(.encodeToString (java.util.Base64/getEncoder) (.getBytes input)))
@mikelikespie
mikelikespie / NSData+PIOAdditions.h
Created February 14, 2013 06:35
Zero-Copy bridging between dispatch_data_t and NSData
//
// NSData+PIOAdditions.h
// PonyExpress
//
// Created by Michael Lewis on 2/13/13.
//
//
#import <Foundation/Foundation.h>