Skip to content

Instantly share code, notes, and snippets.

View H6's full-sized avatar
🌈

H6 H6

🌈
View GitHub Profile
@H6
H6 / gist:0a2df9130f26fd196406
Created July 3, 2015 10:07
NSData to NSString
+ (NSString*)base64forData:(NSData*)theData {
const uint8_t* input = (const uint8_t*)[theData bytes];
NSInteger length = [theData length];
static char table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
NSMutableData* data = [NSMutableData dataWithLength:((length + 2) / 3) * 4];
uint8_t* output = (uint8_t*)data.mutableBytes;
@H6
H6 / README.md
Last active August 29, 2015 14:15 — forked from jonathantneal/README.md

Local SSL websites on Mac OSX

These instructions will guide you through the process of setting up local, trusted websites on your own computer.

These instructions are intended to be used on Mac OSX Yosemite.

NOTE: You may substitute the edit command for nano, vim, or whatever the editor of your choice is. Personally, I forward edit to Sublime Text:

alias edit="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
@H6
H6 / rails_admin.de.yml
Created December 18, 2014 09:08 — forked from soemo/rails_admin.de.yml
fix wrong translation in pagination
# German rails_admin translation
de:
admin:
home:
name: "Home"
pagination:
previous: "« Zurück"
next: "Vor »"
truncate: "…"