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
REM Rebuilds and copies files to deploy directory | |
SETLOCAL | |
SET _fromDir="C:\Users\jwest\Desktop\trunk" | |
SET _toDir="C:\Users\jwest\Desktop\Deploy" | |
msbuild /t:Clean | |
msbuild /t:Rebuild | |
robocopy %_fromDir% %_toDir% *.* /E /XO /XD ".svn" "*ReSharper*" "obj" /XF "*.pdb" "*.cs" "*.vb" "Web.Config" "*.csproj" "*.user" "*.suo" "*ReSharper*" "*.cache" "Thumbs.db" /NDL |
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
REM Copies files and folders from deploy directory to web server. | |
REM NOTE: If there are changes to Web.config, they will need to | |
REM be manually deployed. | |
SETLOCAL | |
SET _fromDir="C:\Users\jwest\Desktop\Deploy" | |
SET _toDir="\\networkserver\share1" | |
SET _toDir2="\\networkserver\share2" | |
robocopy %_fromDir% %_toDir% *.* /E /XO /XF "Web.config" "*.tmp" /NDL |
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 JsonJob | |
{ | |
public int Id { get; set; } | |
public string Title { get; set; } | |
public string Description { get; set; } | |
public DateTime DateAdded { get; set; } | |
public DateTime? DateModified { get; set; } | |
} | |
var job = (from jobs in db.Jobs |
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
var job = (from jobs in db.Jobs | |
where jobs.Id == job.Id | |
select new { Id = jobs.Id, Title = jobs.Title, Description = jobs.Description }).First(); | |
return Json(job); | |
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 getJsonJobDetails(jobId) | |
{ | |
var url = '/JobDetails/GetJsonDetails'; | |
$.ajax({ | |
type: "GET", | |
url: url, | |
data: { jobId: jobId }, | |
dataType: "json", | |
error: function(xhr, status, error) { | |
alert(error); |
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 test (...) | |
for n = 1, select ('#', ...) do | |
local e = select (n, ...) | |
print (e) | |
end | |
end |
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() { | |
$("#link").click(function (e) { | |
e.preventDefault(); | |
}); | |
}); |
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() { | |
$("#link").click(function (e) { | |
e.preventDefault(); | |
alert("Code to be executed when the user clicks goes here!"); | |
}); | |
}); |
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
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.wowarmory.com/character-sheet.xml?r=Kirin+Tor&n=Sachiyo"); | |
request.UserAgent = @"Mozilla/5.0 Gecko/20070219 Firefox/2.0.0.2"; | |
HttpWebResponse response = (HttpWebResponse) request.GetResponse(); | |
String strResponse = String.Empty; | |
XDocument xml; | |
using (StreamReader sr = new StreamReader(response.GetResponseStream())) | |
{ |
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
List<String> myList = new List<String>(); | |
myList.Add("Hello"); | |
myList.Add("World"); | |
foreach(String x in myList) | |
{ | |
Console.WriteLine(x); | |
} |
OlderNewer