Skip to content

Instantly share code, notes, and snippets.

@loopspace
loopspace / gist:7924800
Last active December 31, 2015 02:59 — forked from mattattui/gist:879249
<?php
/* html_convert_entities($string) -- convert named HTML entities to
* XML-compatible numeric entities.
*/
function html_convert_entities($string) {
return preg_replace_callback('/&([a-zA-Z][a-zA-Z0-9]+);/S',
'convert_entity', $string);
}
@loopspace
loopspace / ImageTools.h
Created May 23, 2018 19:24 — forked from tnlogy/ImageTools.h
A Codea addon for saving images to the photo album, share photos to facebook and detect faces in an image. Just add [self.viewController registerAddon:[ImageTools sharedInstance]]; to AppDelegate.mm
//
// ImageTools.h
// FaceDetection
//
// Created by Tobias Teleman on fredag 12 april 2013
// Copyright (c) Tobias Teleman. All rights reserved.
//
#import <Foundation/Foundation.h>