Skip to content

Instantly share code, notes, and snippets.

View leanfj's full-sized avatar
🎯
Focusing

Leandro de Jesus leanfj

🎯
Focusing
View GitHub Profile
Math.random().toString(36).slice(2)
@leanfj
leanfj / linqtoSQL.cs
Last active January 25, 2024 23:00
Exibir query em sql vinda do LINQ
using System.Linq;
using System.Reflection;
using Microsoft.EntityFrameworkCore.Query;
using Microsoft.EntityFrameworkCore.Query.Internal;
using Microsoft.EntityFrameworkCore.Query.Expressions;
using Microsoft.EntityFrameworkCore.Query.Sql;
using static Microsoft.EntityFrameworkCore.DbLoggerCategory;
has context menu
{
"Create a new Database": {
"prefix": "sqlCreateDatabase",
"body": [
"-- Create a new database called '${1:DatabaseName}'",
"-- Connect to the 'master' database to run this snippet",
"USE master",
"GO",
"-- Create the new database if it does not exist already",
"IF NOT EXISTS (",
@leanfj
leanfj / otp.js
Created April 17, 2023 15:14
OTP Generator
Math.floor(Math.random() * 1000000).toString().padStart(6,'0')

Poderia me dar uma exemplo de valueObject de um produto em typescript

Claro, aqui está um exemplo simples de um Value Object em TypeScript para um produto:

class ProductId {
  private readonly id: string;
@leanfj
leanfj / media-query.css
Created July 3, 2020 15:40 — forked from AhmedShela/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS

Cotação Freela

@leanfj
leanfj / readme.md
Created May 12, 2020 22:38
README EXAMPLE

Logo of the project

Name of the project

Additional information or tagline

A brief description of your project, what it is used for and how does life get awesome when someone starts to use it.

Installing / Getting started

@leanfj
leanfj / coc-settings.json
Created April 12, 2020 18:09
Configuração do COC-NVIM
{
"tsserver.npm": "/usr/bin/npm",
"npm.binPath": "/usr/bin/npm",
"coc.preferences.formatOnSaveFiletypes": [
"javascript",
"typescript",
"typescriptreact",
"json",
"javascriptreact",
"typescript.tsx",
@leanfj
leanfj / .init.vim
Created April 12, 2020 18:08
Configuração do NeoVIm
":
" ███▄ █ ▓█████ ▒█████ ██▒ █▓ ██▓ ███▄ ▄███▓
" ██ ▀█ █ ▓█ ▀ ▒██▒ ██▒▓██░ █▒▓██▒▓██▒▀█▀ ██▒
" ▓██ ▀█ ██▒▒███ ▒██░ ██▒ ▓██ █▒░▒██▒▓██ ▓██░
" ▓██▒ ▐▌██▒▒▓█ ▄ ▒██ ██░ ▒██ █░░░██░▒██ ▒██
" ▒██░ ▓██░░▒████▒░ ████▓▒░ ▒▀█░ ░██░▒██▒ ░██▒
" ░ ▒░ ▒ ▒ ░░ ▒░ ░░ ▒░▒░▒░ ░ ▐░ ░▓ ░ ▒░ ░ ░
" ░ ░░ ░ ▒░ ░ ░ ░ ░ ▒ ▒░ ░ ░░ ▒ ░░ ░ ░
" ░ ░ ░ ░ ░ ░ ░ ▒ ░░ ▒ ░░ ░
" ░ ░ ░ ░ ░ ░ ░ ░