Skip to content

Instantly share code, notes, and snippets.

View odderlynat's full-sized avatar

Natalie West odderlynat

  • Dallas, TX
  • 08:28 (UTC -05:00)
View GitHub Profile
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
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
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
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);
function getJsonJobDetails(jobId)
{
var url = '/JobDetails/GetJsonDetails';
$.ajax({
type: "GET",
url: url,
data: { jobId: jobId },
dataType: "json",
error: function(xhr, status, error) {
alert(error);
function test (...)
for n = 1, select ('#', ...) do
local e = select (n, ...)
print (e)
end
end
$(document).ready(function() {
$("#link").click(function (e) {
e.preventDefault();
});
});
$(document).ready(function() {
$("#link").click(function (e) {
e.preventDefault();
alert("Code to be executed when the user clicks goes here!");
});
});
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()))
{
List<String> myList = new List<String>();
myList.Add("Hello");
myList.Add("World");
foreach(String x in myList)
{
Console.WriteLine(x);
}