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 Hangfire.Client; | |
using Hangfire.Common; | |
using Hangfire.States; | |
using Hangfire.Storage; | |
namespace ConsoleApp28 | |
{ | |
public class SkipWhenPreviousJobIsRunningAttribute : JobFilterAttribute, IClientFilter, IApplyStateFilter |
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
# remove extension less files | |
* | |
!/**/ | |
!*.* | |
# intermediate files | |
node_modules/** | |
build/ | |
obj/ | |
Debug/ |
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; | |
namespace Algoritmo1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int[,] testArray = new int[,] { { 1, 2 }, { 3, 4 } } ; |
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
var markers; | |
var address; | |
var lat; | |
var lng; | |
var sleep = 1; | |
var count = 0; | |
function initMapCep(cep, num, elm) { | |
address = getAddr(cep, num); | |
GMaps.geocode({ |
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
(function (root, factory) { | |
if (typeof exports === 'object') { | |
module.exports = factory(); | |
} | |
else if (typeof define === 'function' && define.amd) { | |
define('GMaps', [], factory); | |
} | |
root.GMaps = factory(); |
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 | |
// [RequireRoles(RoleToCheckFor = "Administrador,Editor")] | |
// public class NumeroPeriodicoController : Controller | |
// { ... } | |
//ATENTION | |
// DO NOT FORGET TO PASS THE USER PROFILE IN THE FORMS AUTHENTICATION PASS IN: | |
// FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1, Email, DateTime.Now, | |
// DateTime.Now.AddMinutes(2881), false, USER_PROFILE, FormsAuthentication.FormsCookiePath); | |
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 (Graphics graphics = Graphics.FromImage(resized)) | |
{ | |
graphics.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic; | |
graphics.SmoothingMode = SmoothingMode.HighQuality; | |
graphics.CompositingQuality = CompositingQuality.HighQuality; | |
graphics.PixelOffsetMode = PixelOffsetMode.HighQuality; | |
graphics.DrawImage(imagemOriginal, new Rectangle(0, 0, resized.Width, resized.Height), new Rectangle(0, 0, imagemOriginal.Width, imagemOriginal.Height), GraphicsUnit.Pixel); | |
if (addWaterMark == "1") |
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 ActionResult Index() | |
{ | |
return View(); | |
} | |
[HttpPost] | |
[ValidateAntiForgeryToken] | |
public ActionResult Index(LoginModel login) | |
{ | |
if (ModelState.IsValid) |
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
//Copyright (C) Microsoft Corporation. All rights reserved. | |
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
using System.Reflection.Emit; | |
using System.Threading; |
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
<script type="text/javascript"> | |
$(function(){ | |
$(".datepicker").datepicker(); | |
$(".number").setMask("decimal"); | |
}); | |
</script> |
NewerOlder