Skip to content

Instantly share code, notes, and snippets.

Alberto Chvaicer achvaicer

Block or report user

Report or block achvaicer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Environment.cs
namespace Leste.Robot.Base
{
public enum Environment
{
Development = 0x01,
Homologation = 0x02,
Production = 0x04,
/// <summary>
/// Includes Development | Homologation | Production
/// </summary>
View BlackScholes.cs
using System;
namespace BlackScholes
{
/// <summary>
/// Summary description for BlackSholes.
/// </summary>
public class BlackSholes
View composer-view.js
/* =========================================================
* composer-view.js v0.2.1
* =========================================================
* Copyright 2013 Wpbakery
*
* Visual composer backbone/underscore version
* ========================================================= */
(function ( $ ) {
var i18n = window.i18nLocale,
store = vc.storage,
@achvaicer
achvaicer / mega.cs
Last active Jan 5, 2016
Mega da virada
View mega.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
public static class Program
{
public static void Main(string[] args)
{
View AbstractDays360.cs
internal abstract class AbstractDays360
{
public abstract int Calculate(DateTime start, DateTime end);
protected static int Calculate(DateTime start, DateTime end, int startDay, int endDay)
{
return (end.Year - start.Year) * 360 + (end.Month - start.Month) * 30 + (endDay - startDay);
}
protected static bool LastDayOfFebruary(DateTime date)
@achvaicer
achvaicer / figurinhas.md
Last active Aug 29, 2015
Figurinhas da Copa do Mundo
View figurinhas.md

Figurinhas da copa do mundo

  • 0 [REPETIDA]
  • 1
  • 2
  • 3
  • 4
  • 5 [REPETIDA]
  • 6
  • 7
View Bla.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using SharpTestsEx;
using Vinci.Framework.DataBase;
namespace TestDapper
@achvaicer
achvaicer / Aficionados.md
Created Nov 23, 2013
Aficionados por tecnologia
View Aficionados.md

Aficionados por tecnologia

Ser aficionado por tecnologia não é ficar horas em uma fila para ser o primeiro a comprar alguma novidade.

Muito menos comprar tudo que está na moda.

Virou cool ser geek. O nerd da galera. Aficionado por tecnologia é o cara que constrói o que quer, mesmo que só tenha um bando de lixo velho disponível.

@achvaicer
achvaicer / GetQuotes.cs
Created Oct 22, 2013
Get Quotes request example from Bloomberg Data License
View GetQuotes.cs
private static void GetQuotes(PerSecurityWSClient client)
{
var instrument_search = "PETR4 BZ";
Console.WriteLine("Fazendo requisição de preços de {0}", instrument_search);
var instruments = new List<Instrument> { new Instrument() { id = instrument_search, yellowkey = MarketSector.Equity, yellowkeySpecified = true, type = InstrumentType.TICKER, typeSpecified = false } };
var submitQuotesRequest = client.submitGetQuotesRequest(new SubmitGetQuotesRequest()
{
View gist:6073529
<div class="alert">
<div class="green">
<div class="container">
<div class="row">
<div class="span12">
Sucesso! Seu formulário foi preenchido corretamente.
</div>
</div>
</div>
</div>
You can’t perform that action at this time.