Skip to content

Instantly share code, notes, and snippets.

View daltheman's full-sized avatar
💭
I may be slow to respond.

Danilo Altheman daltheman

💭
I may be slow to respond.
View GitHub Profile
@daltheman
daltheman / QSQlite3
Last active February 9, 2020 20:16
Simple SQLite3 Wrapper written in Swift
//
// QSQLite3.swift
// SQLiteWrapper
//
// Created by Danilo Altheman on 24/06/15.
// Copyright © 2015 Quaddro - Danilo Altheman. All rights reserved.
/* Usage:
// Open or create a Database
let database = QSQLite3(path: NSHomeDirectory() + "/Documents/database.sqlite")
@daltheman
daltheman / NSData+Compression.swift
Created June 18, 2015 04:32
Simple Swift NSData Extension that shows how to use Apple LZFSE Compression Algorithm
/*
NSData+Compression.swift
Created by Danilo Altheman on 17/06/15.
The MIT License (MIT)
Copyright © 2015 Quaddro - Danilo Altheman. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
@daltheman
daltheman / Paragraphs String
Last active February 9, 2020 20:18
A Swift String Extension that returns an array of paragraphs from given text.
// Paragraphs.swift
// This extension return an array of paragraphs from given text.
/*
Copyright (c) 2015 Quaddro - Danilo Altheman
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@daltheman
daltheman / main.c
Created July 21, 2014 15:30
Simple BSD Socket
//
// main.m
// simple_echo_server
//
// Created by Danilo Altheman on 14/07/14.
// Copyright (c) 2014 Quaddro (http://www.quaddro.com.br). All rights reserved.
//
/************
Must READ!!!