BenchmarkDotNet=v0.10.3.0, OS=Microsoft Windows NT 6.2.9200.0
Processor=Intel(R) Core(TM) i7-6500U CPU 2.50GHz, ProcessorCount=4
Frequency=2531250 Hz, Resolution=395.0617 ns, Timer=TSC
[Host] : Clr 4.0.30319.42000, 32bit LegacyJIT-v4.6.1637.0
DefaultJob : Clr 4.0.30319.42000, 32bit LegacyJIT-v4.6.1637.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The javascript function isSameWeek() checks if two dates are in the same week. | |
The extra logic in the code validades when the week begins in a year and ends in another one. | |
The getWeek() function is found at http://javascript.about.com/library/blweekyear.htm | |
------ | |
A [Pen](http://codepen.io/jeanlourenco/pen/gpabqr) by [Jean Carlos Lourenço](http://codepen.io/jeanlourenco) on [CodePen](http://codepen.io/). | |
[License](http://codepen.io/jeanlourenco/pen/gpabqr/license). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$boleto = PagueVeloz::Boleto(); | |
$boleto->auth | |
->setEmail('suaassinaturacompagueveloz@dominio.com') | |
->setToken('seutokenacessoaopagueveloz'); | |
$boleto->dto | |
->setValor(740) | |
->setVencimento('400000000000044') | |
->setSeuNumero('123') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void Main() | |
{ | |
var paraCadastrar = new [] | |
{ | |
new { Chave = "CSVDEFAULT", Descricao = "Descrição detalhada (ou não)" }, | |
new { Chave = "JSONDEFAULT", Descricao = "Descrição detalhada (ou não)" }, | |
new { Chave = "YAML", Descricao = "Descrição detalhada (ou não)" }, | |
new { Chave = "INIT", Descricao = "Descrição detalhada (ou não)" }, | |
new { Chave = "CONFIG", Descricao = "Descrição detalhada (ou não)" }, | |
new { Chave = "BSON", Descricao = "Descrição detalhada (ou não)" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void Main() | |
{ | |
var paraCadastrar = new TipoTransformacao[] | |
{ | |
new TipoTransformacao{ Chave = "CSVDEFAULT", Descricao = "Descrição detalhada (ou não)" }, | |
new TipoTransformacao{ Chave = "JSONDEFAULT", Descricao = "Descrição detalhada (ou não)" }, | |
new TipoTransformacao{ Chave = "YAML", Descricao = "Descrição detalhada (ou não)" }, | |
new TipoTransformacao{ Chave = "INIT", Descricao = "Descrição detalhada (ou não)" }, | |
new TipoTransformacao{ Chave = "CONFIG", Descricao = "Descrição detalhada (ou não)" }, | |
new TipoTransformacao{ Chave = "BSON", Descricao = "Descrição detalhada (ou não)" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
using Dapper; | |
using Microsoft.EntityFrameworkCore; | |
using ServiceStack.DataAnnotations; | |
using ServiceStack.OrmLite; | |
using System; | |
using System.Data; | |
using System.Data.SqlClient; | |
using System.Linq; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>r/place clone</title> | |
</head> | |
<body> | |
<input type="text" value="" id="message" /> | |
<input type="button" value="Send" onclick="send()" /> | |
<div id="container"></div> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace coisas | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
var total = 0; | |
var impares = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CartaoDebitoDto | |
{ | |
public long Id { get; set; } | |
public long CartaoId { get; set; } | |
public string Nome { get; set; } | |
public string Documento { get; set; } | |
public string Email { get; set; } | |
public DateTime? DataUltimaRecarga { get; set; } | |
public decimal? ValorUltimaRecarga { get; set; } | |
public DateTime DataVencimentoUltimaRecarga { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CartaoNaListagemDto | |
{ | |
public long Id { get; set; } | |
public string NomeNoCartao { get; set; } | |
public string QuatroUltimosNumeros { get; set; } | |
} |
OlderNewer