Skip to content

Instantly share code, notes, and snippets.

View npulidom's full-sized avatar
🌋

Nicolas Pulido M. npulidom

🌋
View GitHub Profile
@npulidom
npulidom / JSON.php
Last active August 31, 2023 12:59
PHP Safe Json Encode with NAN and INF support
<?php
/**
* JSON Helper
*/
class JSON {
/**
* Safe Encodes Json with NAN and INF support
* @param Mixed $data - Serializable data
@npulidom
npulidom / sqliteHelper.m
Last active February 21, 2023 15:17
iOS SQLite helper for math extended functions (sqlite3_create_function) using FMDB lib
/**
@author:
Nicolas Pulido
@description:
Snippet code to extended SQLite math functions in an iOS project, using ccgus/FMDB library.
Due to the fact that iOS doesn't support dynamic libraries, we should create SQLite extended functions on runtime with
sqlite3_create_function.
(http://stackoverflow.com/questions/6283496/xcode-sqlite-extension-for-use-on-iphone)