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) |
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
@model MvcApplication5.Models.Manolo | |
@using System.Linq; | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Index</title> | |
</head> | |
<body> | |
<div> | |
@Html.DropDownListFor(model => model.Nome, |
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.Collections.Generic; | |
using System.Web.Mvc; | |
using MvcApplication5.Models; | |
namespace MvcApplication5.Controllers | |
{ | |
public class HomeController : Controller | |
{ | |
public ActionResult Index() | |
{ |
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
private void dashboard_MouseRightButtonDown(object sender, MouseButtonEventArgs e) | |
{ | |
if (toolBox.PossuiComponenteSelecionado) | |
{ | |
var position = e.GetPosition(this.dashboard); | |
var selecionado = toolBox.ComponenteSelecionado; | |
var template = this.FindResource("templateControlesDashboard") as ControlTemplate; |
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 toolbox_com_1_item_gera_toolboxwindow_com_1_botao() | |
{ | |
string sampleAppPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase), "Dashboard.exe"); | |
AutomatedApplication a = new OutOfProcessApplication(new OutOfProcessApplicationSettings | |
{ | |
ProcessStartInfo = new ProcessStartInfo(sampleAppPath), | |
ApplicationImplementationFactory = new UIAutomationOutOfProcessApplicationFactory() | |
}); | |
a.Start(); |
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 Rails template will generate a Rails 3 (MASTER) application, with MongoDB as ORM and Devise for authentication. | |
# You will require ruby 1.9.2-HEAD to run generated app. | |
file 'Gemfile', <<-GEMS | |
source 'http://gemcutter.org' | |
gem 'rails' | |
gem "mongoid" | |
gem "bson_ext" | |
gem "inherited_resources" | |
gem "devise", :git => "git://github.com/plataformatec/devise.git" |