Skip to content

Instantly share code, notes, and snippets.

View willianrattis's full-sized avatar
💭
Olá 🖖

Willian Santa Rosa Rattis willianrattis

💭
Olá 🖖
View GitHub Profile
@willianrattis
willianrattis / markdown-details-collapsible.md
Created August 29, 2022 18:48 — forked from pierrejoubert73/markdown-details-collapsible.md
How to add a collapsible section in markdown.

How to

<details>
  <summary>Click me</summary>
  
  ### Heading
  1. Foo
  2. Bar
     * Baz
 * Qux
@willianrattis
willianrattis / CSharpDifferentWays2Check4Null.md
Last active August 19, 2022 17:50
Different ways to Check for Null with C#

C#: Different ways to Check for Null

What is the classic way to check if for example a parameter value is null? If you’ve developed with C# since a while, you might be familiar with this classic syntax:

public static int CountNumberOfSInName(string name)
{
  if (name == null)
  {
    throw new ArgumentNullException(nameof(name));
@willianrattis
willianrattis / azure-pipelines.yml
Created August 18, 2022 03:46 — forked from miltoncamara/azure-pipelines.yml
Exemplo de Pipeline para Aplicações em .NET 6
trigger:
- master
pool:
vmImage: ubuntu-latest
variables:
buildConfiguration: 'Release'
dotNetFramework: 'net6.0'
dotNetVersion: '6.0.x'
@willianrattis
willianrattis / obtendo-dt-vencimento-linha-digitavel.cs
Created May 9, 2022 17:53
obtém a data de vencimento de um boleto a partir da sua linha digitável.
/// <summary>
/// Obtém a data de vencimento de uma linha digitável de um boleto.
/// </summary>
/// <param name="linhaDigitavel">A string contendo a linha digitável a ser extraída a data.</param>
/// <returns>
/// Retorna uma string com a data de vencimento de um boleto.
/// </returns>
public static string ObterDataVencimentoBoleto(this string linhaDigitavel)
{
string linha = linhaDigitavel.RemoverPontosEspacosHifens();
@willianrattis
willianrattis / launch-multiple-projects.json
Created May 6, 2022 16:04
Debug multiple projects with vs code
{
"version": "0.2.0",
"configurations": [
{
"name": "WebSample",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/WebSample/bin/Debug/net6.0/WebSample.dll",
"args": [],
@willianrattis
willianrattis / gist:c4a3fbba699f3e383984fa21ca2b5b6c
Created April 1, 2022 18:29 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: