Skip to content

Instantly share code, notes, and snippets.

View josemalcher's full-sized avatar
🙃
Hello World!

José Malcher Jr. josemalcher

🙃
Hello World!
View GitHub Profile
@josemalcher
josemalcher / recebe.php
Created June 12, 2020 19:30 — forked from claudiosanches/recebe.php
Exemplo de como adicionar ou atualizar dados com WPDB
<?php
// Update table
function cs_add_data($competition, $date, $numbers) {
global $wpdb;
$table_name = $wpdb->prefix . 'nome da sua tabela';
$numbers = str_replace('/', '-', $numbers);
// Test variables
if (!is_numeric($competition))
wp_die('O número do concurso é inválido');
@josemalcher
josemalcher / gist:bf6ac4467a5c91f035728ee0e6d4f519
Created June 9, 2020 18:08 — forked from diegoprates/gist:5047663
Tradução do jQuery validation plugin para pt-BR.
/*
* Translated default messages for the jQuery validation plugin.
* Locale: PT_BR
*/
jQuery.extend(jQuery.validator.messages, {
required: "Este campo &eacute; requerido.",
remote: "Por favor, corrija este campo.",
email: "Por favor, forne&ccedil;a um endere&ccedil;o eletr&ocirc;nico v&aacute;lido.",
url: "Por favor, forne&ccedil;a uma URL v&aacute;lida.",
date: "Por favor, forne&ccedil;a uma data v&aacute;lida.",
@josemalcher
josemalcher / README-TEMPLATE.md
Created May 21, 2020 14:04 — forked from reginadiana/README-TEMPLATE.md
Template sugestivo para documentação de projetos

Titulo ou Arte do Projeto

@josemalcher
josemalcher / cloudSettings
Last active March 20, 2020 12:45 — forked from waldenermonteiro/cloudSettings
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-03-20T12:45:11.858Z","extensionVersion":"v3.4.3"}
@josemalcher
josemalcher / 1nginx.conf
Created January 28, 2020 18:51 — forked from josephbolus/1nginx.conf
Wordpress Nginx Config
# ---------------------------------------
# Main Module
# ---------------------------------------
user nginx;
# This number should be, at maximum, the number of CPU cores on your system.
worker_processes 2;
pid /var/run/nginx.pid;
# Only log critical errors
@josemalcher
josemalcher / Dockerfile
Created May 30, 2019 02:15 — forked from gabrielfroes/Dockerfile
Docker + VS Code #CDFTV #MaoNoCodigo3
FROM php:7.2-apache
RUN docker-php-ext-install mysqli
RUN a2enmod rewrite
@josemalcher
josemalcher / README-Template.md
Created August 7, 2018 00:10 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",
@josemalcher
josemalcher / site_helper.php
Created March 9, 2018 19:07 — forked from wwwbruno/site_helper.php
Helper com funções úteis para o Codeigniter
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Site Helper
| -------------------------------------------------------------------------
| Desenvolvido por Bruno Almeida
|
*/