Skip to content

Instantly share code, notes, and snippets.

View IgorLimaMiranda's full-sized avatar
:octocat:

Igor Lima Miranda IgorLimaMiranda

:octocat:
View GitHub Profile
@IgorLimaMiranda
IgorLimaMiranda / readme.md
Created November 23, 2023 11:43 — forked from vinicius-stutz/readme.md
Padrões de Nomenclatura em C# (pt-br)

Namespace

Por padrão toda biblioteca deve conter um nome padrão em seu namespace. Ex.: MinhaEmpresa.SeuNameSpace (padrão PascalCase).

Classes

As classes devem começar com letra maiúscula e para cada palavra, a primeira letra também deve ser maiúscula (padrão PascalCase).

C#

@IgorLimaMiranda
IgorLimaMiranda / SQLSchemaDumpWriter
Created October 4, 2023 18:13 — forked from moniyax/SQLSchemaDumpWriter
sample C# code to dump sql schema to a FluenMigrator migration file
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Text;
using FluentMigrator;
using FluentMigrator.Model;
using FluentMigrator.SchemaDump.SchemaWriters;

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@IgorLimaMiranda
IgorLimaMiranda / semantic-commit.txt
Created August 8, 2023 18:28 — forked from eltonea/semantic-commit.txt
Exemplos de commit semântico
chore: add Oyster build script //Pequenas alterações que não são novas funcionalidades.
docs: explain hat wobble //Semelhante a uma wiki; documentações etc.
feat: add beta sequence //Criação de Nova funcionalidade;
fix: remove error message //Correção de bugs
refactor: share logic 4d3d3d3 //Refatoração de um código
style: convert tabs to spaces //Alteração em estilos, formatação de código etc.
test: ensure that increment //Criação de testes da sua aplicação
@IgorLimaMiranda
IgorLimaMiranda / C# Async Await
Created June 6, 2022 14:04 — forked from briang123/C# Async Await
Console app demonstrating async / await requests in C#
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
public class Program
{
private static string _dateFormat = "hh:mm:ss.fff tt";
private static async Task DoTask1Async(int num)
{
@IgorLimaMiranda
IgorLimaMiranda / async c#.cs
Created June 6, 2022 14:04 — forked from luisrudge/async c#.cs
async console app
using System.Threading.Tasks;
namespace ConsoleApplication1 {
internal class Program {
private static void Main(string[] args) {
RunAsync().Wait();
}
private static async Task RunAsync() {
//your async code
@IgorLimaMiranda
IgorLimaMiranda / serialwin.vbs
Created May 28, 2022 15:20 — forked from vndmtrx/serialwin.vbs
Função VBS para salvar a chave de ativação atualmente em uso no Windows 7, 8, 8.1 e 10.
Option Explicit
'Código VBS para salvar a chave do Sistema para Windows 10, 8 e 7.
'Adaptado do site: http://winaero.com/blog/how-to-view-your-product-key-in-windows-10-windows-8-and-windows-7/
Dim objshell, Caminho, ChaveDigitalProduto, Result
Set objshell = CreateObject("WScript.Shell")
'Registra o path do registro onde está a chave do sistema
Caminho = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\"
'Chave de registro do sistema
<html>
<h1>Hello World</h1>
</html>