Skip to content

Instantly share code, notes, and snippets.

View SilasRodrigues19's full-sized avatar
🐒
Attempting to define the undefined in both code and reality

Silas Rodrigues SilasRodrigues19

🐒
Attempting to define the undefined in both code and reality
View GitHub Profile
@SilasRodrigues19
SilasRodrigues19 / flexfroggy.css
Created September 5, 2022 14:39
Flexbox Froggy answers
.level1 {
display: flex;
justify-content: flex-end;
}
.level2 {
display: flex;
justify-content: center;
}
@SilasRodrigues19
SilasRodrigues19 / uid.js
Last active September 16, 2022 23:23
Function to generate a unique id
const uid = () => {
return (performance.now().toString(36)+Math.random().toString(36)).replace(/\./g,"");
};
uid();
@SilasRodrigues19
SilasRodrigues19 / shorthands.css
Last active September 17, 2022 00:58
CSS Shorthands
https://app.clickup.com/31002239/v/dc/xj3kz-203/xj3kz-223
/* Font Shorthand */
.font {
/* Long */
font-style: italic;
font-weight: bold;
font-size: 1rem;
line-height: 1.5rem;
font-family: 'Source Sans Pro', sans-serif;
@SilasRodrigues19
SilasRodrigues19 / regex.js
Created September 23, 2022 04:10
URL RegEx
let urlRegex = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/g
@SilasRodrigues19
SilasRodrigues19 / estacionamento.c
Last active October 23, 2022 05:07
Simples exemplo de estacionamento em C
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
#include <locale.h>
typedef struct estacionamento ESTACIONAMENTO;
struct estacionamento
{
-- --------------------------------------------------------
-- Servidor: 127.0.0.1
-- Versão do servidor: 10.4.25-MariaDB - mariadb.org binary distribution
-- OS do Servidor: Win64
-- HeidiSQL Versão: 12.1.0.6537
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
#include <locale.h>
/*
olimpíada de natação eu quero cadastar os nomes ,com braçadas,metro e pontos dos participantes de cada país.
*/
@SilasRodrigues19
SilasRodrigues19 / STALuziaEcommerce.sql
Last active December 27, 2022 16:08
Queries com a relação de Notas Fiscais passadas pela Kely, o Mateus informou 132 mas na relação da Kely tem 134
SELECT id AS idpedido,
idcliente AS IDSTALuziaEcommerce,
numerocontrole AS NF,
chaveacesso,
status,
dataentrega
FROM pedidos
WHERE idcliente = '6f865a5c0c01b6f299b436dcb590fa45' -- STA Luzia Ecommerce
AND numerocontrole = '355392';
  • xxxxx
  • yyyyy
@SilasRodrigues19
SilasRodrigues19 / kill.sql
Created January 24, 2023 11:35
KILL DATABASE PROCESS
SELECT CONTACT('KILL', id, ';') FROM INFORMATION_SCHEMA.PROCESSLIST -- WHERE INFO LIKE '%KEY%';