Skip to content

Instantly share code, notes, and snippets.

View lucenarenato's full-sized avatar
🐘
Remoto

Renato Lucena lucenarenato

🐘
Remoto
View GitHub Profile
@lucenarenato
lucenarenato / public function sintetico
Created May 27, 2018 23:23
controller de relatorio
<?php
namespace App\Http\Controllers\Zen\Cartorial;
use App\Http\Controllers\Controller;
use App\Http\Controllers\Adagio;
use Validator;
use Exception;
class RelatorioController extends Controller
@lucenarenato
lucenarenato / how-to-gource.sh
Created July 5, 2018 13:32 — forked from miguelsaddress/how-to-gource.sh
Install Gource in Ubuntu (gource.io)
#Install Gource in Ubuntu
========================
#Go to the folder.... and
#see http://tylerfrankenstein.com/code/install-gource-ubuntu-1010-visualize-git-repo
sudo apt-get update
sudo apt-get install libsdl2-dev libsdl2-image-dev libpcre3-dev libfreetype6-dev libglew-dev libglm-dev libboost-filesystem-dev libpng12-dev libsdl1.2-dev libsdl-image1.2-dev libtinyxml-dev
./configure
make
sudo make install
@lucenarenato
lucenarenato / LICENCE SUBLIME TEXT
Created November 26, 2018 19:27
Sublime Text 3 Serial key build is 3176
## Sublime Text 3 Serial key build is 3176
> * Added these lines into /etc/hosts
127.0.0.1 www.sublimetext.com
127.0.0.1 license.sublimehq.com
> * Used the license key
----- BEGIN LICENSE -----
* SplFixedArray
@lucenarenato
lucenarenato / notificationFx.js
Last active March 26, 2019 20:39 — forked from victorximenis/notificationFx.js
Notification FX
/***
*https://tympanus.net/Development/NotificationStyles/
*https://github.com/codrops/NotificationStyles
***/
;( function( window ) {
'use strict';
var docElem = window.document.documentElement,
support = { animations : Modernizr.cssanimations },

Rotas Laravel + Subdominio.md

// Rotas que pertencem a um subdominio deverão ser registradas dentro do grupo
// Rotas para subdominio devem sempre ser declaradas antes das outras
Route::group(['domain' => '{account}.' . env('APP_DOMAIN')], function () {
    Route::get('do-something', function ($account) {
        //
    });
});
@lucenarenato
lucenarenato / javascript_css_resources.md
Last active April 3, 2019 20:06
javascript_resources.md

javascript_resources.md

  • Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the
@lucenarenato
lucenarenato / deploy.sh
Created April 3, 2019 20:13 — forked from logikinc/deploy.sh
Laravel deploy script
# Change to the project directory
cd /home/forge/domain.com
# Turn on maintenance mode
php artisan down
# Pull the latest changes from the git repository
git pull origin master
# Install/update composer dependecies
@lucenarenato
lucenarenato / xdebug_commands_laravel.sh
Created April 3, 2019 20:18
Executando o xdebug no console, para depurar comandos artesanais do Laravel.
# Executando o xdebug no console, para depurar comandos artesanais do Laravel.
# Running xdebug in the console, for debugging Laravel artisan commands. Useful as I keep forgetting this one...
php -dxdebug.remote_autostart artisan
#Running phpcs for 5.3:
phpcs -pv --standards= --runtime-set testVersion 5.3 --ignore=*/public/*,*.js,*.css,*/tests/*,*/views/training/* .
- Renato Lucena | @cpdrenato