This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
using System.Windows.Forms; | |
using DirectShowLib; | |
namespace WindowsFormsApp1 | |
{ | |
public partial class Form1 : Form |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers\Api; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Http; | |
use App\Models\OAuthToken; | |
class BlingApiController extends Controller |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@props([ | |
'type', | |
'text' | |
]) | |
@php | |
$type = [ | |
'success' => 'bg-green-50 text-green-700 ring-green-600/20', | |
'danger' => 'bg-red-50 text-red-700 ring-red-600/10', | |
'warning' => 'bg-yellow-50 text-yellow-800 ring-yellow-600/20', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Media { | |
public static void main(String args[]) { | |
int i = 0, soma = 0; | |
float media = 0; | |
int notas[] = new int[50]; | |
Scanner entrada = new Scanner(System.in); | |
for ( i = 0 ; i < notas.length ; i++ ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Requests; | |
use Illuminate\Foundation\Http\FormRequest; | |
use Illuminate\Contracts\Validation\Validator; | |
use Illuminate\Http\Exceptions\HttpResponseException; | |
class StoreCategoryRequest extends FormRequest | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Crie um objeto FormData para armazenar o arquivo que será enviado | |
var formData = new FormData(); | |
// Anexe o arquivo selecionado pelo usuário ao objeto FormData | |
// $('#arquivo')[0] pega o elemento DOM real para acessar os arquivos selecionados | |
formData.append('arquivo', $('#arquivo')[0].files); | |
// Configure a solicitação AJAX | |
$.ajax({ | |
// Especifique a URL do script PHP que receberá o arquivo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Git Comandos Essenciais: | |
Verificar mudanças no repositório: | |
git status | |
Verificar a branch atual: | |
git branch | |
Criar e mudar para uma nova branch: | |
git checkout -b "nome_da_branch" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt-BR" data-bs-theme="light"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"> | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous"> |