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
<html> | |
<body> | |
<script src="https://code.jquery.com/jquery-1.12.2.min.js" integrity="sha256-lZFHibXzMHo3GGeehn1hudTAP3Sc0uKXBXAzHX1sjtk=" crossorigin="anonymous"></script> | |
<script> | |
function populateVideoElement(videoId) { | |
var dynamicName = 'vzvd-' + videoId; | |
var link = "https://view.vzaar.com/"+videoId +"/player"; |
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
<html> | |
<body> | |
<button onclick="pgen(1)" >open 1 </button> | |
<div id="gen"> | |
demo | |
</div> | |
<script src="https://code.jquery.com/jquery-1.12.2.min.js" integrity="sha256-lZFHibXzMHo3GGeehn1hudTAP3Sc0uKXBXAzHX1sjtk=" crossorigin="anonymous"></script> | |
<script> |
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.IO; | |
using System.Reflection; | |
namespace XmlSchemaValidator.FileUtility | |
{ | |
public class FileHelpers | |
{ | |
public static string AssemblyDirectory | |
{ |
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
<html> | |
<body> | |
<video width="320" height="240" controls id="vieoEl" autoplay> | |
<source src="video.mp4" type="video/mp4"> | |
Your browser does not support the video tag. | |
</video> | |
<button onclick="setVideoSource()" >Update videSource </button> | |
<script> |
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
D:\Builds\01\src\External\Newtonsoft.Json.5.0.8\lib\net45\Newtonsoft.Json.xml: TF14061: The workspace 01_TFS-BUILD01;TFS_BuildService does not exist. | |
Exception Message: TF14061: The workspace 01_TFS-BUILD01;TFS_BuildService does not exist. (type WorkspaceNotFoundException) | |
Exception Stack Trace: | |
Server stack trace: | |
at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.HandleReply(TfsClientOperation operation, TfsMessage message, Object[]& outputs) | |
at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation operation, Object[] parameters, Object[]& outputs) | |
at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation operation, Object[] parameters) | |
at Microsoft.TeamFoundation.VersionControl.Client.Repository5.UpdateLocalVersion(String workspaceName, String ownerName, ServerItemLocalVersionUpdate[] updates, Int32 maxClientPathLength) | |
at Microsoft.TeamFoundation.VersionControl.Client.WebServiceLayer.UpdateLocalVersion(String workspa |
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 APPNAME "App Name" | |
!define COMPANYNAME "Company Name" | |
!define DESCRIPTION "A short description goes here" | |
# These three must be integers | |
!define VERSIONMAJOR 1 | |
!define VERSIONMINOR 1 | |
!define VERSIONBUILD 1 | |
# These will be displayed by the "Click here for support information" link in "Add/Remove Programs" | |
# It is possible to use "mailto:" links in here to open the email client | |
!define HELPURL "http://..." # "Support Information" link |
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 ExamResultsFormViewModel | |
{ | |
public PreliminaryInformationViewModel PreliminaryInformation { get; set; } | |
public string MemberID { get; set; } | |
public string MemberName { get; set; } | |
public int PatientID { get; set; } |
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 (var context = new PrincipalContext(ContextType.Domain, "spacenation")) | |
{ | |
using (var searcher = new PrincipalSearcher(new UserPrincipal(context))) | |
{ | |
foreach (var result in searcher.FindAll().Where(x => x.SamAccountName.Contains("UserName"))) | |
{ | |
DirectoryEntry de = result.GetUnderlyingObject() as DirectoryEntry; | |
Console.WriteLine("First Name: " + de.Properties["givenName"].Value); | |
Console.WriteLine("Last Name : " + de.Properties["sn"].Value); | |
Console.WriteLine("User principal name: " + de.Properties["userPrincipalName"].Value); |
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 DemoController : Controller | |
{ | |
public ActionResult Index() | |
{ | |
var model = new DemoModel(); | |
model.Items = new List<SelectListItem>() | |
{ | |
new SelectListItem() | |
{ | |
Text = "one", |
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
Dim returnValue As String = "" | |
Try | |
Using tmsCommand As New SqlCommand("dbo.getUserXml", _tmsConnection) | |
If _tmsConnection.State = ConnectionState.Closed Then _tmsConnection.Open() | |
tmsCommand.CommandType = CommandType.StoredProcedure | |
tmsCommand.Parameters.Add(New SqlParameter("@UserId", SqlDbType.Int, ParameterDirection.Input)).Value = userID | |
tmsCommand.Parameters.Add(New SqlParameter("@UserXml", SqlDbType.Xml, 1)).Direction = ParameterDirection.Output | |
Dim returnSpValue = New SqlParameter("@ReturnVal", SqlDbType.Int) | |
tmsCommand.Parameters.Add(returnSpValue).Direction = ParameterDirection.ReturnValue | |
tmsCommand.ExecuteNonQuery() |