Skip to content

Instantly share code, notes, and snippets.

View tuliocll's full-sized avatar
🎶
eu vim da roça meu bem

Tulio Calil tuliocll

🎶
eu vim da roça meu bem
View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/custom_loading_imageView"
android:layout_width="120dp"
import android.app.Activity;
import android.app.Dialog;
import android.util.Log;
import android.view.Window;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.bumptech.glide.request.target.GlideDrawableImageViewTarget;
public class LoadingDialog {
@tuliocll
tuliocll / laravellocal.md
Created May 24, 2019 00:04 — forked from hootlex/laravellocal.md
Run laravel project locally

##Windows users:

cmder will be refered as console

##Mac Os, Ubuntu and windows users continue here:

  • Create a database locally named homestead utf8_general_ci
@tuliocll
tuliocll / App.js
Last active January 24, 2021 21:22
Example Login Screen for adminlte-2-react with formik and yup validation.
//Using:
import React, { Component } from "react";
import AdminLTE from "adminlte-2-react";
//import the login component
import Login from "./LoginAdminLTE";
//receive the json returned after form submit
handleLogin = values => {
alert(JSON.stringify(values));
@tuliocll
tuliocll / host-react-app-on-apache-server.md
Created July 5, 2019 13:18 — forked from ywwwtseng/host-react-app-on-apache-server.md
Host react application on Apache server

Host react application on Apache server

Step 1 : Create your app

$ npm install -g create-react-app 
$ create-react-app my-app

Step 2 : Build it for production

@tuliocll
tuliocll / localizationBR.js
Last active July 28, 2021 21:33
Arquivo de tradução para o [material table](https://www.npmjs.com/package/material-table) para português BR.
const localizationBR = {
pagination: {
labelDisplayedRows: '{from}-{to} de {count}',
labelRowsSelect: 'linhas',
labelRowsPerPage: 'Linhas por página:',
firstTooltip: 'Primeira página',
firstAriaLabel: 'Primeira página',
previousAriaLabel: 'Página anterior',
previousTooltip: 'Página anterior',
nextAriaLabel: 'Próxima página',
@tuliocll
tuliocll / androidavd.desktop
Created January 13, 2020 17:22
Create shortcut for running android virtual device in linux (ubuntu, debian, arch, fedora...). Download this image and save on `~/Android/Sdk` folder with name `icon.png`. Change emulator name to yours. To see emulator name run this commando on terminal: `~/Android/Sdk/emulator/emulator -list-avds`
[Desktop Entry]
Version=1.0
Name=Android Virtual Device
Comment=Start Android virtual device
Exec=bash -c "~/Android/Sdk/emulator/emulator -avd Galaxy_Nexus_API_28"
Icon=~/Android/Sdk/icon.png
Terminal=false
Type=Application
Categories=Utility;Application;
@tuliocll
tuliocll / docker-php-vscode.md
Last active July 27, 2023 22:25
script to create a php executable file from container to your machine, then you can setup the PHP › Validate: Executable Path on vscode.

Starting

  • create a file on /usr/local/bin with name 'php';
nano /usr/local/bin/php
  • paste de following code:
#!/bin/bash
docker exec -i --user=1000:1000 YOUR-CONTAINER-NAME php "$@"
#My git alias: http://tuliocalil.blogspot.com/2020/07/linux-e-unix-alias-atalhos-produtivos.html
alias g=git
alias ga='git add'
alias gam='git am'
alias gap='git apply'
alias gb='git branch'
alias gbs='git bisect'
alias gcam='git commit -a -m'
alias gcb='git checkout -b'
alias gcd='git checkout develop'
#My react native alias: http://tuliocalil.blogspot.com/2020/07/linux-e-unix-alias-atalhos-produtivos.html
alias rnand='npx react-native run-android'
alias rnios='npx react-native run-ios'
alias rnapk='cd android && ./gradlew assembleRelease && cd..'
alias rnbundle='cd android && ./gradlew bundleRelease && cd..'
alias rnd='npx react-native doctor'
alias rnlink='npx react-native link'