Skip to content

Instantly share code, notes, and snippets.

View renatoschroepfer's full-sized avatar
😃
I may be slow to respond.

Renato Schroepfer renatoschroepfer

😃
I may be slow to respond.
  • Vitória, ES Brasil
View GitHub Profile
@renatoschroepfer
renatoschroepfer / phpstorm-vs-sublimetext-shortcuts.md
Created June 17, 2022 17:41 — forked from silasrm/phpstorm-vs-sublimetext-shortcuts.md
Teclas de atalhos do PHPStorm com funções semelhantes ao Sublime Text, e outras interessantes.

#Teclas de atalhos do PHPStorm com funções semelhantes ao Sublime Text, e outras interessantes.

Sublime Text PHPStorm Função
CMD+P CMD+Shift+O Busca por arquivos no projeto
CMD+R CMD+F12 (1) Lista os métodos da classe e outros símbolos
CMD+F CMD+F Busca no arquivo
CMD+Option+F CMD+R Busca e troca os valores no arquivo
CMD+Shift+F CMD+Shift+F Busca, busca e troca e outros em um determinado caminho com várias regras.
CMD+D (2) Option+Up (2) Seleciona palavra
@renatoschroepfer
renatoschroepfer / gist:f3879bb9ab7d398f81f241ad4400f202
Created October 7, 2021 00:21 — forked from Sanaya1428/gist:012973b78d46c3abcbe9cb9ea35dd560
How to Learn ReactJS — A roadmap from beginner to advanced
To grasp all the fundamentals of React, you can start with the following tutorials:
1. React official documentation by React.
2. Beginners guide to React by Kent C. ...
3. Fundamentals of React by Samer Buna.
4. React Official tutorial by React.
5. Fetching API with React.js by Ethan Jarrell.
6. React Router tutorial by Paul Sherman.
Prerequisites
1. Basic knowledge of HTML, CSS, and JavaScript.
2. Basic understanding of ES6 features. Here’s my article explaining some of the ES6 features.
{"lastUpload":"2020-10-17T16:10:33.027Z","extensionVersion":"v3.4.3"}
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Database\Eloquent\Model;
use App\Multimodel;
class Multicontroller extends Controller
$query = "SELECT id, name FROM `glpi_entities`.`name";
$result = $DB->query($query);
echo "<script>";
echo "function change(select) {";
echo " window.open('helpdesk.public.php?create_ticket=1&active_entity=' + select.value,'_self'); ";
echo "}";
echo "</script>";
echo '<td>Deseja abrir chamado para qual setor</td>';
echo '<td>';
echo '<select onchange="change(this)">';
<?php
/*
-------------------------------------------------------------------------
GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2015-2016 Teclib'.
http://glpi-project.org
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
SELECT
vencido.tickets_id,
Tickets.name,
Tickets.due_date,
Tickets.solvedate,
Cat.completename,
TIMESTAMPDIFF(hour, Tickets.date, Tickets.solvedate) as Tempo
FROM
glpi_vencidos as vencido
INNER JOIN
<?php
$query = "SELECT id, name FROM `glpi_entities`.`name";
echo "<script>";
echo "function change(select) {";
echo " window.open('helpdesk.public.php?create_ticket=1&active_entity=' + select.value,'_self'); ";
echo "}";
echo "</script>";
echo '<td>Deseja abrir chamado para qual setor</td>';
echo '<td>';
echo '<select onchange="change(this)">';
echo "<script>";
echo "function change(select) {";
echo " window.open('helpdesk.public.php?create_ticket=1&active_entity=' + select.value,'_self'); "
echo "}"
echo "</script>";
// ...
echo '<td>Local</td>';
echo '<td>';
echo '<select onchange="change(this)">';
echo '<option value="3">Tecnologia da Informação</option>';
echo "<td>Local</td>";
echo "<td>";
echo "<select onchange=\"window.open(this.value,'_self');\">";
echo "<option value=\"helpdesk.public.php?create_ticket=1&active_entity=2\">Tecnologia da Informação</option>";
echo "<option value=\"helpdesk.public.php?create_ticket=1&active_entity=4\">Comunicação</option>";
echo "</select>";
echo "</td>";
echo "</tr>";