Skip to content

Instantly share code, notes, and snippets.

<?php
namespace Tests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Validator;
filters: {
name: { value: 'Rafael G Firmino' },
email: { value: 'rafaelgfirmino@gmail.com' },
person_type: { value: 'legal_person' },
gender: { value: true, boolean: true },
city: { value: 'Belo Horizonte' },
state: { value: 'Minas Gerais' },
is_brazilian: { value: null },
'classification.id': { value: null },
@rafaelgfirmino
rafaelgfirmino / ExampleFilterObject.js
Last active April 26, 2019 23:05
Limpando objetos em  Vuejs
filters: {
name: { value: null },
email: { value: null },
person_type: { value: null },
gender: { value: null, boolean: true },
city: { value: null },
state: { value: null },
is_brazilian: { value: null },
'classification.id': { value: null },
type: { value: null },
const webpack = require('webpack');
// used in vue cli 3
module.exports = {
configureWebpack: {
resolve: {
extensions: ['.js'],
alias: {
'jquery': 'jquery/dist/jquery.min',
}

TestToReturn

@rafaelgfirmino
rafaelgfirmino / main.go
Created July 26, 2018 20:42 — forked from enricofoltran/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@rafaelgfirmino
rafaelgfirmino / default.conf
Created February 13, 2018 11:21
NGiNX Configuration for Vue-Router in HTML5 Mode
server {
listen 80 default_server;
listen [::]:80 default_server;
root /your/root/path;
index index.html;
server_name you.server.com;
@rafaelgfirmino
rafaelgfirmino / gist:335ac20288d3b1143207fc39dfc96533
Created April 12, 2017 20:47 — forked from prime31/gist:5675017
Simple PHP script showing how to send an Android push notification. Be sure to replace the API_ACCESS_KEY with a proper one from the Google API's Console page. To use the script, just call scriptName.php?id=THE_DEVICE_REGISTRATION_ID
<?php
// API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = array( $_GET['id'] );
// prep the bundle
$msg = array
from pyquery import PyQuery as pq
import os
import urllib
import re
ANIME_NAME = "Charlotte2/"
LINK_DA_PAGINA_DO_ANIME = "http://www.animeai.net/318337.html"
TAG_PAI_DA_LISTA_DE_ANIME = "#lcp_instance_0"
os.system('[ -e out.html ]&& rm file; wget -c "'+LINK_DA_PAGINA_DO_ANIME+'" --user-agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0" -O "out.html"')

Mostrando a branch atual no terminal

Abra o bashrc no terminal e adicione as linhas a seguir;

function parse_git_dirty {
 test "$(git diff HEAD --name-only 2&gt;/dev/null 2&gt;&amp;1)" &amp;&amp; echo " *"