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
| 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
| 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
| <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 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
| 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
| namespace Dominio { | |
| public class Aluno | |
| { | |
| public Aluno( string nome, string matricula, string sexo, DateTime dataNascimento, string cpf, string corRaca, string email) | |
| { | |
| Nome = nome; | |
| Matricula = matricula; | |
| DataNascimento = dataNascimento; | |
| Cpf = cpf; |
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 IQueryable<AlunoDto> BuscarTodosAlunoDtos() | |
| { | |
| var alunos = ( | |
| from al in _context.Alunos | |
| join pe in _context.Pessoas on al.Id equals pe.Id | |
| into alu | |
| from alun in alu.DefaultIfEmpty() | |
| join at in _context.AlunoTurmas on al.Id equals at.AlunoId into alt | |
| from ats in alt.DefaultIfEmpty() |
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
| // multpart/data | |
| $('form').on('submit', function (e) { | |
| e.preventDefault(); | |
| var form = new FormData($(this)[0]); | |
| $.ajax({ | |
| method: "POST", | |
| url: URL, | |
| data: form, | |
| processData: false, | |
| contentType: false, |
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
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| clean: { | |
| temp: [ | |
| 'public/js/app.js', | |
| 'public/js/libs.js' | |
| ], | |
| all: [ | |
| 'public/js/*.js' |