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; | |
using System.Collections.Generic; | |
using System.ComponentModel.DataAnnotations; | |
using System.Data; | |
using System.Data.Entity; | |
using System.Data.Entity.Infrastructure; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; |
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 RequireRouteValuesAttribute : ActionMethodSelectorAttribute { | |
public string[] ValueNames { get; private set; } | |
public RequireRouteValuesAttribute(params string[] valueNames) { | |
ValueNames = valueNames; | |
} | |
/// <summary> | |
/// Check for all strings | |
/// </summary> |
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
/* | |
USAGE: | |
//inside a controller | |
var controller = this; | |
var actionDescriptor = controller.HttpContext.GetActionDescriptor(controllerString, actionString, "GET", controller.RouteData); | |
*/ | |
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
#include <stdio.h> | |
int main (void) | |
{ | |
int num,cont; | |
scanf("%d", &num); | |
for(cont = 2;(cont < num) && (num%cont!=0); cont++){ | |
if(num==cont) | |
printf("primo\n"); |
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
#include <stdio.h> | |
/* Recebe um número inteiro positivo que representa uma idade e emite uma mensagem na saída se a idade é inferior a 60 */ | |
int main(void) | |
{ | |
int idade; | |
/*lê a idade*/ | |
printf("Quantos anos voce tem? "); | |
scanf("%d", &idade); |
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
define(['services/dataGridService'], function (DataGridService) { | |
//var parameters = { | |
// api: '', | |
// query: function (pesquisa) { }, | |
// columns: [], | |
// doubleClick: function () { } | |
//}; | |
var ListaBase = function (parameters) { |
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
define(function (require) { | |
var DataService = require('services/dataService'); | |
function DataGridService(parameters) { | |
var self = this; | |
this.pageSize = ko.observable(10); | |
this.totalServerItems = ko.observable(0); | |
this.currentPage = ko.observable(1); | |
this.items = ko.observableArray(); |
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
define(['durandal/system'], function (system) { | |
var EntityQuery = breeze.EntityQuery; | |
var FilterQueryOp = breeze.FilterQueryOp; | |
var Predicate = breeze.Predicate; | |
var EntityManager = breeze.EntityManager; | |
var MetadataStore = breeze.MetadataStore; | |
var EntityState = breeze.EntityState; | |
function DataService(api) { |
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
define( | |
[ | |
'services/dataService', | |
'durandal/app', | |
'durandal/system', | |
'durandal/plugins/router' | |
], | |
function (DataService, App, system, router) { | |
var FormBase = function (api, entityType, entityDefaultValues, routeBack) { |
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; | |
using System.Collections.Generic; | |
using System.Data.Entity; | |
using System.Linq; | |
using System.Web; | |
using HSJLab.Models; | |
using System.Web.Security; | |
using System.Web.Mvc; | |
using System.Diagnostics; | |
using System.Collections.Specialized; |