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 () { | |
$('#contato').submit(function (e) { | |
e.preventDefault(); | |
validar(); | |
$.post($(this).attr("action"), $(this).serialize(), function (json) { | |
alert(json); | |
}, "json"); | |
}); |
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
<nav class="sharing"> | |
<ul> | |
<li class="facebook"><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="/" show_faces="true" width="450"></fb:like></li> | |
<li><a href="#" class="compartilhe">Compartilhe</a></li> | |
<li><a href="#" class="mail">Enviar por E-Mail</a></li> | |
<li><a href="#" class="print">Versão para impressão</a></li> | |
</ul> | |
</nav> | |
.. | |
... |
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] | |
20 public void GetMovesOneSquareForward_A7_ReturnsPromotions() | |
21 { | |
22 var wp = new WhitePawns(new Bitboard().Set(new Square("A7"))); | |
23 var m = wp.GetMovesOneSquareForward(); | |
24 var moves = m.GetEnumerator(); | |
25 | |
26 | |
27 moves.MoveNext(); | |
28 var f1 = moves.Current; |
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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0" DefaultTargets="default"> | |
<UsingTask AssemblyFile="$(MSBuildProjectDirectory)\..\lib\NuGetTasks\NuGet.MSBuild.dll" TaskName="NuGet.MSBuild.NuGet" /> | |
<PropertyGroup> | |
<Configuration Condition="'$(Configuration)'==''" >Release</Configuration> | |
<BaseDir>$(MSBuildProjectDirectory)\..</BaseDir> | |
<BuildDir>$(BaseDir)\build</BuildDir> | |
<BuildDirBin>$(BaseDir)\build\bin</BuildDirBin> | |
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
using System.Web.Mvc; | |
using Ninject; | |
using Ninject.Mvc3; | |
[assembly: WebActivator.PreApplicationStartMethod(typeof(MvcApplication1.AppStart_NinjectMVC3), "Start")] | |
namespace MvcApplication1 { | |
public static class AppStart_NinjectMVC3 { | |
public static void RegisterServices(IKernel kernel) { | |
//kernel.Bind<IThingRepository>().To<SqlThingRepository>(); |
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 MeuDependencyResolver : IDependencyResolver | |
{ | |
private HashSet<object> dependencias; | |
public MeuDependencyResolver() | |
{ | |
this.dependencias.Add(new DummyDependencia1()); | |
this.dependencias.Add(new DummyDependencia2()); | |
this.dependencias.Add(new DummyDependencia2_2()); | |
} |
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 MeuDependencyResolver : IDependencyResolver | |
{ | |
private ILookup<Type, object> lookup; | |
private HashSet<object> dependencias = new HashSet<object>(); | |
public MeuDependencyResolver() | |
{ | |
this.dependencias.Add(new DummyDependencia1()); | |
this.dependencias.Add(new DummyDependencia2()); | |
this.dependencias.Add(new DummyDependencia2_2()); |
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
Param($S,$I,$Cert,$L,$P,$Cfg) | |
$start = Get-Date | |
$service_name = $S | |
$subscription_id = $I | |
$certificate = $Cert | |
$label = $L | |
$package = $P | |
$config_file = $Cfg |
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 partial class MainWindow : Window | |
{ | |
private Line line = null; | |
private Brush oldBrush; | |
public MainWindow() | |
{ | |
InitializeComponent(); | |
} | |
void onDragDelta(object sender, DragDeltaEventArgs e) |
OlderNewer