Skip to content

Instantly share code, notes, and snippets.

View argentinaluiz's full-sized avatar

Luiz Carlos argentinaluiz

View GitHub Profile
@Geoyi
Geoyi / install virtualenv ubuntu 16.04.md
Created September 16, 2017 12:19 — forked from frfahim/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 
@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"
@silasrm
silasrm / explicação
Last active June 22, 2016 12:25
AngularJS
AngularACL
Criar as classes:
UserObj, onde é obrigatório ter a as propriedades:
- isLogged: true|false
- roles: array
- name: string
Security, onde irá ter métodos para checagem de permissão, recebendo o usuário (instância de UserObj)
e o nome da rota, onde irá checar se a rota existe, e se existir, checa se o usuário possui alguma das
roles que a rota necessita.
@argentinaluiz
argentinaluiz / navigation.phtml
Last active March 27, 2019 13:58
A implementation to navigation menu from Bootstrap 2.x and 3.x using Zend Framework 2 and Twig
<?php
foreach ($this->container as $page):
$sub = $page->getPages();
$aAttribs = '';
$liClasses = array();
$liClass = '';
if ($page->isActive(true))
$liClasses[] = 'active';