Skip to content

Instantly share code, notes, and snippets.

View gabrielbarceloscn's full-sized avatar

Gabriel Barcelos gabrielbarceloscn

View GitHub Profile
@gabrielbarceloscn
gabrielbarceloscn / html
Last active November 13, 2020 20:29
TecSharp Mail Signature HTML
<div style="height: 150px; width:650px" class="_2Ypz6DjF0cnPXsnj_7roel">
<table
style="
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
color: rgb(59, 70, 84);
font-size: 13px;
background: rgb(223, 228, 230) none repeat scroll 0% 0%;
transform: scale(0.633721);
transform-origin: left top 0px;
"
@gabrielbarceloscn
gabrielbarceloscn / Counter.ts
Last active July 26, 2020 14:25
#Redux > armazena contagem Armazenamento de um contador em uma store do redux.
import { Action, Reducer } from 'redux';
// -----------------
// STATE - This defines the type of data maintained in the Redux store.
export interface CounterState {
count: number;
}
// -----------------
@gabrielbarceloscn
gabrielbarceloscn / .gitignore
Last active June 10, 2021 13:26
.gitignore > Visual Studio + Rider + Mac + JavaScriptApp
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates
@gabrielbarceloscn
gabrielbarceloscn / findAndLoadCertificate.cs
Created March 5, 2019 13:08
Find and load a X509Certificate2 as an embedded resource as a file in c#
var assembly = Assembly.GetEntryAssembly();
var resourceName = "ravencrt1.pfx2";
var resourcePath = assembly.GetName().Name + "." + resourceName.Replace(" ", "_")
.Replace("\\", ".")
.Replace("/", ".");
using (var resourceStream = assembly.GetManifestResourceStream(resourcePath))
{
if (resourceStream != null)
{
byte[] ba = new byte[resourceStream.Length];