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
mysqlimport.exe --fields-terminated-by="," --lines-terminated-by="|" --fields-optionally-enclosed-by="\"" --force --ignore -u root -p poc c:\Users\jtoto\Desktop\service.txt |
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
# this is for multistage deployments... to deploy to staging, do "cap staging deploy" | |
# this is also set up for passenger deployments | |
# change stuff where it says CHANGEME | |
# set stage-specific stuff in the task named after the stage below | |
set :domain, "CHANGME" | |
role :web, domain | |
role :app, domain | |
role :db, domain, :primary => true |
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
/* | |
* Copyright 2004-2009 James House | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not | |
* use this file except in compliance with the License. You may obtain a copy | |
* of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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}"); |
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
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
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
$(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', |
OlderNewer