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
class VicHUD extends MobileHUD; | |
defaultproperties | |
{ | |
} |
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
class VicGame extends FrameworkGame; | |
defaultproperties | |
{ | |
PlayerControllerClass=class'VicGame.VicPlayerController' | |
DefaultPawnClass=class'VicGame.VicPawn' | |
HUDType=class'VicGame.VicHUD' | |
bDelayedStart=false | |
} |
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
string cssUrl = Server.MapPath("~/css/contract.css"); | |
return new PdfResult("Contract.pdf", | |
myContractText, | |
new string[] { cssUrl }); |
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.Linq; | |
using System.Web; | |
using System.Web.Mvc; | |
using PDFBuilder; | |
using iTextSharp.text; | |
namespace SweetApp.Web | |
{ |
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
routes.Add(new ServiceRoute("api/v1/test", | |
new NinjectServiceHostFactory(), typeof(TestService))); |
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 NinjectWebServiceHostFactory() | |
{ | |
_kernel = NinjectKernel.Instance.Kernel; // point to your kernel | |
} |
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
IUserRepository userRepo; | |
public TestService(IUserRepository userRepo) | |
{ | |
this.userRepo = userRepo; | |
} |
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
[ServiceContract] | |
[AspNetCompatibilityRequirements( | |
RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] | |
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)] | |
public class TestService | |
{ | |
[Description("Test Description.")] | |
[WebGet(UriTemplate = "go")] | |
public string Test() | |
{ |
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
// standard jquery self-calling function | |
jQuery(function () { | |
// get the elements | |
var psiIn = $("#psiIn"), | |
psiOut = $("#psiOut"), | |
time = $("#time"), | |
depth = $("#depth"), | |
tankVolume = $("#tankVolume"), | |
tankWorkingPsi = $("#tankWorkingPsi"), | |
finalLabel = $("#rate"), |
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
// Namespace to DevelopLive | |
DevelopLive = window.DevelopLive || {}; | |
// Define Dive | |
DevelopLive.Dive = window.DevelopLive.Dive || {}; | |
(function () { | |
$self = DevelopLive.Dive; | |
$self.calcSac = function(psiIn, psiOut, time, |