Skip to content

Instantly share code, notes, and snippets.

View rohanaceres's full-sized avatar

Ceres Rohana rohanaceres

View GitHub Profile
Name: Flash
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc=
- git reflog
- find the SHA1 for the commit at the tip of your deleted branch
- git checkout [sha]
- git checkout -b [branchname]
[Fact]
public void SendEmail()
{
var settingsStub = new Mock<IPomboCorreioSettings>();
settingsStub.Setup(s => s.Company)
.Returns("Stone");
settingsStub.Setup(s => s.CostCenter)
.Returns("AffiliationElo");
settingsStub.Setup(s => s.EmailTargetList)
.Returns(new List<EmailContactData>(new [] { new EmailContactData { Address = "ccarvalho@stone.com.br" } }));
public static class MyServiceInstaller
{
private const int STANDARD_RIGHTS_REQUIRED = 0xF0000;
private const int SERVICE_WIN32_OWN_PROCESS = 0x00000010;
[StructLayout(LayoutKind.Sequential)]
private class SERVICE_STATUS
{
public int dwServiceType = 0;
public ServiceState dwCurrentState = 0;
Open the portable .csproj and:
- Delete: <MinimumVisualStudioVersion>10.0</MinimumVisualStudioVersion>
- Delete: <DefaultLanguage>en-US</DefaultLanguage>
- Delete: <TargetFrameworkProfile>Profile344</TargetFrameworkProfile>
- Delete: <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- Change: <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
for this: <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Emoji | Outra coisa
------------ | -------------
:tada: `:constrution:` | initial commit
:art: `:art:` | quando melhorar a estrutura/formato do código
:racehorse: `:racehorse:` | quando melhorar a performance
:memo: `:memo:` | quando escrever alguma documentação
:bug: `:bug:` | quando corrigir um bug
:fire: `:fire:` | quando remover códigos ou arquivos
:green_heart: `:green_heart:` | quando corrigir uma build no CI
:white_check_mark: `:white_check_mark:` | quando adicionar testes