Skip to content

Instantly share code, notes, and snippets.

View multiarts's full-sized avatar
🏠
Working from home

João Mello multiarts

🏠
Working from home
  • J MelloDev
  • Salvador
View GitHub Profile
import 'package:flutter/material.dart';
class AppBarGradient extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
@multiarts
multiarts / ClipShadowPath.dart
Last active October 16, 2024 20:06 — forked from coman3/ClipShadowPath.dart
Updated to null safety
import 'package:flutter/material.dart';
class ClipShadowPath extends StatelessWidget {
final Shadow shadow;
final CustomClipper<Path> clipper;
final Widget child;
const ClipShadowPath({
Key? key,
required this.shadow,
/*
table client:
id
bairros_id
name
Table bairros
id
name
*/
#!/bin/bash
home=~/
if [ -z "$1" ]
then
echo -n "Informe o nome do projeto (Ex.: homestead): "
read answer
else
answer="$1"
fi
@multiarts
multiarts / criavhost.sh
Created September 23, 2015 17:03
Script para criação de virtual host no ubuntu e derivados.
# sh criavhost.sh meudomino.com.br
# Alterar o nome de usuário no trecho “chown -R www-data:user $1” de “user” para o nome do seu usuário…
#!/bin/sh
echo "Criando virtual host para o site "$1
echo "<VirtualHost *:80>
ServerName $1
ServerAdmin [email protected]
DocumentRoot /var/www/$1/public
ErrorLog /var/log/apache2/error.log
@multiarts
multiarts / user-default-config.json
Created September 13, 2015 19:30
Accented characters in Sublime Text 3 Ubuntu
[
// missing accented characters fix for ubuntu 14.10
// a, [á, å, ä]
{ "keys": ["´","a"], "command": "insert", "args": {"characters": "á"}},
{ "keys": ["°","a"], "command": "insert", "args": {"characters": "å"}},
{ "keys": ["¨","a"], "command": "insert", "args": {"characters": "ä"}},
// A, [Á, Å, Ä]
{ "keys": ["´","A"], "command": "insert", "args": {"characters": "Á"}},
@multiarts
multiarts / zsh.md
Last active August 29, 2015 14:26 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
server {
# Listen on port 81
listen 81;
# Server name being used (exact name, wildcards or regular expression)
# server_name phpmyadmin.my;
root /usr/share/phpmyadmin;
@multiarts
multiarts / gist:aa2489ff78312830be65
Created July 30, 2015 01:12
Config Sublime Text 3
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"caret_extra_bottom": 3,
"caret_extra_top": 3,
"caret_extra_width": 2,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
"font_options":
[
"gray_antialias"
@multiarts
multiarts / gist:764dd6700d3c740cfc20
Created July 5, 2015 01:48
php-cs-fixer config
{
"phpcs_executable_path": "/usr/local/bin/phpcs",
"phpcbf_executable_path": "/usr/local/bin/phpcbf",
"php_cs_fixer_executable_path": "/usr/local/bin/php-cs-fixer",
"php_command_on_save": false,
"php_cs_fixer_on_save": true,
"php_cs_additional_args": {
"--level": "psr2",
"--fixers": "-psr0"
},