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
<?php | |
/* | |
* This class will be responsible for create/delete windows tasks | |
* Sample code: | |
* | |
$task = new WindowsTask('my monthly task', 'USERNAME', 'PASSWORD"); | |
$task->schedule_type = WindowsTask::ScheduleType_MONTHLY; | |
$task->start_time = '12:41'; | |
$task->command = 'notepad'; | |
$task->day = '30'; |
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.Reflection; | |
using System.Web.Mvc; | |
namespace SolutionName.Helpers | |
{ | |
// request must be ajax | |
// used with controller methods | |
public class AjaxOnlyAttribute : ActionMethodSelectorAttribute | |
{ | |
public override bool IsValidForRequest(ControllerContext controllerContext, MethodInfo methodInfo) |
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; | |
using System.Collections.Generic; | |
using System.ComponentModel.DataAnnotations; | |
using System.Linq; | |
using System.Text; | |
using System.Web; | |
namespace SolutionName.Helpers | |
{ | |
public static class EnumUtil |
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; | |
using System.Configuration; | |
using System.DirectoryServices; | |
namespace StrategicPlans.Helpers | |
{ | |
public class ActiveDirectoryHelper | |
{ | |
public string ActiveDirectoryServerPath { get; 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
//--------------------- Copyright Block ---------------------- | |
/* | |
PrayTime.cs: Prayer Times Calculator (ver 1.2) | |
Copyright (C) 2007-2010 PrayTimes.org | |
C# Code By: Jandost Khoso | |
Original JS Code By: Hamid Zarrabi-Zadeh | |
License: GNU LGPL v3.0 |
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.Linq.Expressions; | |
namespace Utilities.Extentions; | |
public static class ObjectExtensions | |
{ | |
/// <summary> | |
/// dynamically set the value of an object's property using property name. | |
/// </summary> | |
/// <param name="obj"></param> |