Skip to content

Instantly share code, notes, and snippets.

View tghelere's full-sized avatar
🇧🇷
Eat, Sleep, Code, Repeat

Thyago Ghelere tghelere

🇧🇷
Eat, Sleep, Code, Repeat
  • Softhing S/A
  • Brazil (Londrina - PR)
  • X @tghelere
View GitHub Profile
<style>
body { padding: 10px;}
.clonedInput { padding: 10px; border-radius: 5px; background-color: #def; margin-bottom: 10px; }
.clonedInput div { margin: 5px; }
</style>
<div id="clonedInput1" class="clonedInput">
<div>
<label for="txtCategory" class="">Learning category <span class="requiredField">*</span></label>
<select class="" name="txtCategory[]" id="category1">
@tghelere
tghelere / php_jquery_ajax.php
Created August 1, 2019 14:36
Just a simple example
<?
$servers = ['server abc', 'server 123'];
$jogos_abc = ['1' => 'Jogo a', '2' => 'Jogo y', '3' => 'Jogo 4', '4' => 'Jogo h'];
$jogos_123 = [
'a' => 'Game f',
'b' => 'Game x',
'c' => 'Game 1',
'd' => 'Game m'
@tghelere
tghelere / vue.md
Last active September 3, 2020 12:53
Fala guys, boa noite. Alguem indica um bom curso de Vue?

O que você indicaria a alguém que quer aprender Vue.js?

Esta convesa aconteceu em um grupo de Whatsapp sobre Vue.

  • [22:55, 14/2/2019] +55 ...: Fala guys, boa noite. Alguem indica um bom curso de Vue?

[23:19, 14/2/2019] Eu: Sim

[23:19, 14/2/2019] Eu: Peraí

@tghelere
tghelere / github_emoji.md
Created November 30, 2018 13:38
Some emoticons that can be used in Github
  • People

    Emoji => Code
    :bowtie: => :bowtie:
    😄 => :smile:
    😆 => :laughing:
    😊 => :blush:
    😃 => :smiley:

| ☺️ | => | :relaxed: |

@tghelere
tghelere / mysql-docker.sh
Created September 12, 2018 12:20 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
<template>
<b-container>
<b-row>
<b-col md="4" v-for="(post, index) in allPosts" :key='index' :current-page="currentPage" :per-page="perPage">
<a class="link-post" :href="'/blog/post/' + post.slug" :title="post.title" >
<div class="item-post">
<img :src="post.image" :alt="post.title" class="img-fluid img-thumbnail" >
<h4>{{post.title}}</h4>
<p>{{post.description}}</p>
</div>
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class ChangeAttributeCategoryPostTable extends Migration
{
/**
* Run the migrations.
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCategoryPostTable extends Migration
{
/**
* Run the migrations.
<template>
<div class="row">
<div class="col-md-9">
<div class="row">
<div class="col-md-4" v-for="(post, index) in filteredItems" :key='index'>
<div class="item-post">
<a :href="'/blog/post/' + post.slug" :title="post.title" >
<img :src="post.image" :alt="post.title" class="img-fluid img-thumbnail" >
<h4>{{post.title}}</h4>
<p>{{post.description}}</p>
<template>
<div>
<b-form @submit.prevent="onSubmit" class="m50">
<b-row>
<b-col md="4">
<b-form-group>
<b-form-select @input="getCities(form.state.id)" id="states" required v-model="form.state" :options="states">
<template slot="first">
<option :value="null" disabled>UF *</option>
</template>