Skip to content

Instantly share code, notes, and snippets.

View argentinaluiz's full-sized avatar

Luiz Carlos argentinaluiz

View GitHub Profile
<?php
namespace App\Tenant;
class TenantManager
{
private $tenant; //instancia de account
//substituir o routeParama
<ion-header>
<ion-toolbar color="primary">
<ion-buttons navPop left>
<button ion-button icon-only>
<ion-icon name="close-circle"></ion-icon>
</button>
</ion-buttons>
<ion-title>PagSeguro</ion-title>
</ion-toolbar>
////
providers:[
{provide: XHRBackend, useClass: DefaultXHRBackend},
//
@argentinaluiz
argentinaluiz / composer.json
Created May 2, 2017 02:25
Laravel 5.4 com Ionic 3 - Instalando da biblioteca jwt
"tymon/jwt-auth": "dev-develop#9f759fe9e3112e1de50920c05537d752780cf966"
@argentinaluiz
argentinaluiz / ExtendedZip.php
Last active March 24, 2017 11:18
ExtendedZip
<?php
use ZipArchive;
class ExtendedZip extends ZipArchive
{
// Member function to add a whole file system subtree to the archive
public function addTree($dirname, $localname = '')
{
if ($localname) {
@argentinaluiz
argentinaluiz / SetLocalMiddleware.php
Created December 15, 2016 19:26
Change locale in Zend Expressive by query params and middleware
<?php
namespace CodeEmailMKT\Application\Middleware;
use Locale;
use Psr\Http\Message\ServerRequestInterface;
use Zend\Expressive\Helper\UrlHelper;
class SetLocaleMiddleware
{
private $helper;
@argentinaluiz
argentinaluiz / modal.component.js
Created November 26, 2016 17:06
Materialize Modal with Vue.js 1
export default {
template: `
<div :id="modal.id" class="modal">
<div class="modal-content">
<slot name="content"></slot>
</div>
<div class="modal-footer">
<slot name="footer"></slot>
</div>
</div>
tinymce.init({
selector: 'textarea',
plugins: [
'advlist autolink lists link image charmap print preview hr anchor pagebreak',
'searchreplace wordcount visualblocks visualchars code fullscreen',
'insertdatetime media nonbreaking save table contextmenu directionality',
'emoticons template paste textcolor colorpicker textpattern imagetools'
],
toolbar1: 'bold italic | fontselect | fontsizeselect | print preview media | forecolor backcolor emoticons',
toolbar2: 'insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image',
@argentinaluiz
argentinaluiz / readme.md
Created August 9, 2016 13:47
Comparision JQuery vs Vue.js
@argentinaluiz
argentinaluiz / index.html
Last active October 13, 2023 00:16
Quickstart with Angular 2
<html>
<head>
<title>Angular 2 - School of Net</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="node_modules/core-js/client/shim.min.js"></script>
<script src="node_modules/zone.js/dist/zone.js"></script>
<script src="node_modules/reflect-metadata/Reflect.js"></script>
<script src="node_modules/systemjs/dist/system.src.js"></script>