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 GetTrackingURL(ServiceProvider as String, TrackingNumber as String) | |
If ServiceProvider = "UPS" Then | |
Return string.format("http://wwwapps.ups.com/WebTracking/processInputRequest?InquiryNumber1={0}&sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&track.x=0&track.y=0",TrackingNumber) | |
Else | |
Return string.format("http://www.fedex.com/Tracking?tracknumbers={0}&action=track&language=english&state=0&cntry_code=us",TrackingNumber) | |
End If | |
End Function |
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
SELECT ROUTINE_NAME, ROUTINE_DEFINITION | |
FROM INFORMATION_SCHEMA.ROUTINES | |
WHERE ROUTINE_DEFINITION LIKE '%TEXT%' | |
AND ROUTINE_TYPE='PROCEDURE' |
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
[HttpPost] | |
public ActionResult Logon(LoginUserViewModel loginUser) | |
{ | |
if (!ModelState.IsValid) | |
return View(loginUser); | |
User user = userRepository.GetUser(loginUser.UserName); | |
if (user != null) | |
{ |
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
$(document).ready(function() { | |
$("#fileUpload2").fileUpload({ | |
'uploader': 'uploadify/uploader.swf', | |
'cancelImg': 'uploadify/cancel.png', | |
'script': 'uploadify/upload.php', | |
'folder': '', | |
'multi': true, | |
'fileDesc': 'Afbeeldingen', | |
'fileExt': '*.jpg;*.jpeg;*.gif;*.png', | |
'checkScript': 'uploadify/check.php', |
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
require 'rubygems' | |
require 'fileutils' | |
require 'albacore' | |
@buildnumber = 10 | |
@deployroot = "c:/deploy/raf/" | |
task :default => [:versioning, :build, :cleandeploy, :publish] | |
assemblyinfo :versioning do |asm| |
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 FileImporter { | |
public void RunImport() { | |
bool wait = true; | |
string exec = ConfigurationManager.AppSettings["Executable"]; | |
string switches = ConfigurationManager.AppSettings["Switches"]; | |
string parameters = ConfigurationManager.AppSettings["Params"]; | |
string startDirectory = ConfigurationManager.AppSettings["StartDirectory"]; |
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
[Test] | |
public void Can_View_A_Single_Page_Of_Products() | |
{ | |
//Arrange, if there are 5 products in the repository... | |
IProductsRepository repository = UnitTestHelpers.MockProductsRepository( | |
new Product { Name = "P1" }, new Product { Name = "P2" }, new Product { Name = "P3" }, | |
new Product { Name = "P4" }, new Product { Name = "P5" } | |
); | |
var controller = new ProductsController(repository); |
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
namespace WebUI | |
{ | |
// Note: For instructions on enabling IIS6 or IIS7 classic mode, | |
// visit http://go.microsoft.com/?LinkId=9394801 | |
public class MvcApplication : NinjectHttpApplication | |
{ | |
public static void RegisterRoutes(RouteCollection routes) | |
{ | |
routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); |