If env variables changed and you don't want to close the session
refreshenv
Cleans all the bin folders recursively
FOR /F "tokens=*" %G IN ('DIR /B /AD /S *bin*') DO RMDIR /S /Q "%G"
(function($) { | |
var sliderUL = $('div.slider').css('overflow', 'hidden').children('ul'), | |
imgs = sliderUL.find('img'), | |
imgWidth = imgs[0].width, // 600 | |
imgsLen = imgs.length, // 4 | |
current = 0, //0: first | |
$('#slider-nav').show().find('button').on('click', function() { | |
var direction = $(this).data('dir'), | |
move = ( direction === 'next' ) ? 1 : -1; //1 forward, -1 backward |
<?xml version="1.0" encoding="utf-8" ?> | |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Chutzpah" ToolsVersion="4.0"> | |
<PropertyGroup> | |
<ChutzpahPath>..\packages\Chutzpah.1.3.1.1\tools\chutzpah.console.exe</ChutzpahPath> | |
<TestSourcePath>spec</TestSourcePath> | |
</PropertyGroup> | |
<Target Name="Chutzpah"> | |
<Exec Command="$(ChutzpahPath) $(TestSourcePath) /teamcity" /> | |
</Target> | |
</Project> |
/ GT_HelloWorldWin32.cpp | |
// compile with: /D_UNICODE /DUNICODE /DWIN32 /D_WINDOWS /c | |
#include <windows.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <tchar.h> | |
// Global variables |
public class HomeController : Controller | |
{ | |
// This action renders the form | |
public ActionResult Index() | |
{ | |
return View(); | |
} | |
// This action handles the form POST and the upload | |
[HttpPost] |
@echo off | |
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b) | |
For /f "tokens=1-2 delims=/:" %%a in ('time /t') do (set mytime=%%a%%b) | |
echo %mydate%_%mytime% |
private class AdditionalInfoJson | |
{ | |
public bool hasErrors { get; set; } | |
public List<string> errors { get; set; } | |
} | |
... | |
// data = Json(new { hasErrors = true, errors }, JsonRequestBehavior.AllowGet) | |
string json = new JavaScriptSerializer().Serialize(data.Data); |
<div ng-app="" ng-controller="MainCtrl"> | |
<input type="text" ng-enter="doSomething()"> | |
</div> |
//Function for File Download in ASP.Net in C# and | |
//Tracking the status of success/failure of Download. | |
private bool DownloadableProduct_Tracking() | |
{ | |
//File Path and File Name | |
string filePath = Server.MapPath("~/ApplicationData/DownloadableProducts"); | |
string _DownloadableProductFileName = "DownloadableProduct_FileName.pdf"; | |
System.IO.FileInfo FileName = new System.IO.FileInfo(filePath + "\\" + _DownloadableProductFileName); | |
FileStream myFile = new FileStream(filePath + "\\" + _DownloadableProductFileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite); |
public class Author : IEquatable<Author> | |
{ | |
public string FirstName { get; set; } | |
public string LastName { get; set; } | |
public bool Equals(Author other) | |
{ | |
if (FirstName == other.FirstName && LastName == other.LastName) | |
return true; |