Skip to content

Instantly share code, notes, and snippets.

View ewiggin's full-sized avatar

Mario Martinez ewiggin

View GitHub Profile
@ewiggin
ewiggin / MailSender.php
Created November 9, 2015 10:26
Helper to send emails with PHPMailer and basic html templates.
<?php
/**
* MailSender
* Per utilitzar PHPMailer de forma molt més senzilla i
* utilitzant plantilles HTML.
*
* Dependencies:
* - PHPMailer
*
* @version 0.24
@ewiggin
ewiggin / WarriorSQL.js
Last active November 6, 2015 08:53
WebSQL ORM to easy transactions.
////////////////////////////////////////////////////////////////////////////////////////////////////
// WarriorSQL
////////////////////////////////////////////////////////////////////////////////////////////////////
/**
* WarriorSQL
* ORM object to easy consults to WebSQL databases.
* On this version can do easy SQL Querys:
* - SELECT
* - DELETE
* - UPDATE
@ewiggin
ewiggin / dynamic_init.js
Last active November 30, 2016 18:25
Dynamic initialization Javascript object - Angular Example
angular.module('service', [])
.factory('Model', function(){
return function Model(item){
this.name = "";
this.surname = "";
this.email = "";
// more attrs