Skip to content

Instantly share code, notes, and snippets.

View fernandezdavid's full-sized avatar
🌴
On vacation

David Fernández fernandezdavid

🌴
On vacation
View GitHub Profile
REGEXP_REPLACE(
REGEXP_REPLACE(
REGEXP_REPLACE(
REGEXP_REPLACE(
REGEXP_REPLACE(
REGEXP_REPLACE(
REGEXP_REPLACE(
REGEXP_REPLACE(
REGEXP_REPLACE(
REGEXP_REPLACE(intento_previo, '9', "Apps móviles"),

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
//-------------------------------------------Views-----------------------------------
// <copyright file="Model.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
namespace Microsoft.Samples.Kinect.BasicInteractions
{
using System;
using System.Collections.Generic;
Error de servidor en la aplicación '/'.
[A]System.Web.WebPages.Razor.Configuration.HostSection no puede convertirse en [B]System.Web.WebPages.Razor.Configuration.HostSection. El tipo A se origina a partir de 'System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' en el contexto 'Default' en la ubicación 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Razor\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.Razor.dll'. El tipo B se origina a partir de 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' en el contexto 'Default' en la ubicación 'C:\Users\DAvid\AppData\Local\Temp\Temporary ASP.NET Files\root\30d9c458\df39d154\assembly\dl3\749bb77d\4c670c6c_7b38ce01\System.Web.WebPages.Razor.DLL'.
Descripción: Excepción no controlada al ejecutar la solicitud Web actual. Revise el seguimiento de la pila para obtener más información acerca del error y dónde se originó en el código.
Detalles de la excepción: System.I
foreach (var campDetail in camp.AdvertCampaignDetails)
{
DateTime check_date = DateTime.Now.AddDays(-i);
inter += _db.AdvertCampaignDetailInteractions
.Where(c => c.AdvertID == campDetail.AdvertID && EntityFunctions.TruncateTime(c.StartDatetime) == check_date.Date)
.Count();
elapsedTime += _db.AdvertCampaignDetailInteractions
.Where(c => c.AdvertID == campDetail.AdvertID && EntityFunctions.TruncateTime(c.StartDatetime) == check_date.Date && c.TimeElapsed!=null)
.Sum(c => c.TimeElapsed.GetValueOrDefault(0));
height += _db.AdvertCampaignDetailInteractions
Array
(
[0] => 1889883229
[1] => 488835183
[2] => 550593395
[3] => 763493425
[4] => 1932858889
[5] => 2095048392
[6] => 1762303890
[7] => 1408443226