This file contains hidden or 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
namespace Saegrn.Domain.Services | |
{ | |
public class InscricaoService : IInscricaoService | |
{ | |
#region Properties | |
private IInscricaoRepository _inscricaoRepository; | |
private IUsuarioService _usuarioService; | |
private IOfertaService _ofertaService; | |
#endregion |
This file contains hidden or 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 Saegrn.Resource.Resources; | |
using Saegrn.Resource.Validation; | |
using System; | |
namespace Saegrn.Domain.Entities | |
{ | |
public class Evento | |
{ | |
#region Properties | |
public Guid Id { get; private set; } |
This file contains hidden or 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
<div id="demo"> | |
<h1>{{bob.fields.firstName}} {{bob.fields.lastName}}</h1> | |
</div> | |
<ul id="humans-list"> | |
<li v-repeat="humans"> | |
{{fields.firstName}} {{fields.lastName}} | |
</li> | |
</ul> |
This file contains hidden or 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.Web.Mvc; | |
namespace MyApp | |
{ | |
public class CarController : Controller | |
{ | |
//... | |
public ActionResult Edit(CarModel model) | |
{ |
This file contains hidden or 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 IEnumerable<IEnumerable<T>> Split<T>(this T[] array, int size) | |
{ | |
for (var i = 0; i < (float)array.Length / size; i++) | |
{ | |
yield return array.Skip(i * size).Take(size); | |
} | |
} |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script> | |
<script class="jsbin" src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.min.js" type="text/javascript"></script> | |
<script src="jquery.validate.cpf.js"></script> | |
<script type="text/javascript"> | |
$(function () { | |
var $cpf = $("#id_cpf").attr("name"); | |
var $params = {debug:false, rules:{}, messages:{}}; |
This file contains hidden or 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
var event = new CustomEvent('build', { | |
'detail': 'wescley' | |
}); | |
document.addEventListener('build', function(e){ | |
alert(e.detail); | |
var nome = e.detail + ' matos'; | |
var ajaxEvent = new CustomEvent('ajax-return', { | |
'detail': nome | |
}); |
This file contains hidden or 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
<nav class="navbar navbar" role="navigation"> | |
<div class="container-fluid"> | |
<div class="btn-toolbar" role="toolbar"> | |
<div class="btn-group"> | |
<a href="#" class="btn btn-danger">NEW</a> | |
</div> | |
<div class="btn-group"> | |
<a href="#" class="btn btn-default">All</a> | |
<a href="#" class="btn btn-default">Friends</a> | |
<a href="#" class="btn btn-default">Family</a> |
This file contains hidden or 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
function sleep(milliseconds) { | |
var start = new Date().getTime(); | |
for (var i = 0; i < 1e7; i++) { | |
if ((new Date().getTime() - start) > milliseconds) { | |
break; | |
} | |
} | |
} |
This file contains hidden or 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
return Math.floor(Math.random() * (max - min + 1)) + min; |