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
| !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 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
| 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 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 (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 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
| public class DemoController : Controller | |
| { | |
| public ActionResult Index() | |
| { | |
| var model = new DemoModel(); | |
| model.Items = new List<SelectListItem>() | |
| { | |
| new SelectListItem() | |
| { | |
| Text = "one", |
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
| 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() |
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
| <script> | |
| var disqus_config = function () { | |
| this.page.url = @Html.Raw(string.Format("'{0}'", Request.Url.AbsoluteUri)); | |
| this.page.identifier = @Html.Raw(string.Format("'{0}'", Model.Id)); | |
| }; | |
| (function() { // DON'T EDIT BELOW THIS LINE | |
| var d = document, s = d.createElement('script'); | |
| s.src = '//domain.disqus.com/embed.js'; |
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.Data; | |
| using System.Data.Entity; | |
| using System.Data.SqlClient; | |
| namespace Examples | |
| { | |
| public class SpExample | |
| { | |
| private readonly DbContext _context; |
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
| /// <reference path="/scripts/jquery-1.10.2.js" /> | |
| /// <reference path="/scripts/angular/angular.js" /> | |
| /// <reference path="/scripts/angular/angular-resource.js" /> | |
| /// <reference path="/scripts/angular/angular-filter.js" /> | |
| /// <reference path="/scripts/angular/angular-mocks.js" /> | |
| /// <reference path="/scripts/services/dataservice.js" /> | |
| /// <reference path="/scripts/controllers/example.js" /> | |
| /// <reference path="/scripts/app.js" /> |
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.Web.Mvc; | |
| public class ContainerSection : IDisposable | |
| { | |
| protected HtmlHelper _helper; | |
| public ContainerSection(HtmlHelper helper, string title) | |
| { | |
| _helper = helper; |
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
| attrib -r /s "$(ProjectDir)*.js" |