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
@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 / 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

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 {
<?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"
#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'
#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'
swagger: "2.0"
info:
description: "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters."
version: "1.0.0"
title: "Swagger Petstore"
termsOfService: "http://swagger.io/terms/"
contact:
email: "apiteam@swagger.io"
license:
name: "Apache 2.0"
@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));
convert(`name,
subname,
users{
name,
id,
casas{
id,
}
},
address{
@tuliocll
tuliocll / package.json
Created March 25, 2021 20:00 — forked from martsie/package.json
Purge CSS in Create React App without ejecting
{
"name": "my-app",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-scripts": "3.0.1"
},
"devDependencies": {