Skip to content

Instantly share code, notes, and snippets.

View fmansi's full-sized avatar
🍇

Flávio Mansi fmansi

🍇
  • São Paulo
View GitHub Profile
@fmansi
fmansi / AccountContactApp.app
Created August 28, 2019 17:54 — forked from xmas/AccountContactApp.app
Parent Child Parameter Passing
<aura:application >
<c:AccountParentComponent/>
</aura:application>
@fmansi
fmansi / InputMask.html
Created May 2, 2018 21:04 — forked from codinronan/InputMask.html
Custom Ionic 2 & 3 Input Mask Directive
<ion-input type="tel" pattern="\d*" placeholder="(xxx) xxx-xxxx" mask="(***) ***-****" [(ngModel)]="phone" name="phone"></ion-input>
<ion-input type="tel" pattern="\d*" placeholder="xxx-xx-xxxx" mask="***-**-****" [(ngModel)]="ssn" name="ssn"></ion-input>
@fmansi
fmansi / Bootstrap Checkbox Select All Or Cancel
Created February 27, 2018 20:36 — forked from seayxu/Bootstrap Checkbox Select All Or Cancel
Bootstrap Checkbox Select All Or Cancel
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bootstrap Table Checkbox Select All and Cancel</title>
<link href="//cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<h2>Bootstrap Table Checkbox Select All and Cancel</h2>
<table class="table table-striped">
@fmansi
fmansi / app.js
Created December 23, 2016 20:37 — forked from jgoux/app.js
Ionic / AngularJS service wrapper for Web SQL API / SQLite-Cordova-Plugin
angular.module('myApp', ['ionic', 'myApp.services', 'myApp.controllers'])
.run(function(DB) {
DB.init();
});
@fmansi
fmansi / gist:e035e2e0966143e17896
Last active August 26, 2015 19:46 — forked from nyg/iOSCreatePDF.swift
iOS, Swift: Create a PDF file from an HTML string
// Thanks to http://www.labs.saachitech.com/2012/10/23/pdf-generation-using-uiprintpagerenderer
// 1. Create a print formatter
let html = "<b>Hello <i>World!</i></b>"
let fmt = UIMarkupTextPrintFormatter(markupText: html)
// 2. Assign print formatter to UIPrintPageRenderer
let render = UIPrintPageRenderer()