Skip to content

Instantly share code, notes, and snippets.

View jean-lourenco's full-sized avatar
📦
resolving binding redirects

Jean Lourenço jean-lourenco

📦
resolving binding redirects
View GitHub Profile
@jean-lourenco
jean-lourenco / dapper.cs
Last active April 7, 2017 19:45
Exemplo de queries com o Dapper
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)" },
@jean-lourenco
jean-lourenco / gerar-boleto.php
Last active March 13, 2017 17:25
Gerar boleto pelo pagueveloz-php
$boleto = PagueVeloz::Boleto();
$boleto->auth
->setEmail('[email protected]')
->setToken('seutokenacessoaopagueveloz');
$boleto->dto
->setValor(740)
->setVencimento('400000000000044')
->setSeuNumero('123')
@jean-lourenco
jean-lourenco / isSameWeek() function
Last active December 2, 2024 08:51
Javascript - Date isSameWeek() function
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).