This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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" |
This file contains hidden or 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
| <!-- | |
| Background é uma propriedade do objeto Button | |
| E pode ser setada para um tipo complexo no XAML | |
| Como mostrado abaixo | |
| --> | |
| <Button> | |
| <Button.Background> | |
| <SolidColorBrush Color="Blue" /> | |
| </Button.Background> | |
| </Button> |
This file contains hidden or 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
| <div style="padding-left:110px"> | |
| <div class="submit"> | |
| <div style="padding-left:5px"> | |
| <div class="inputBtAzulPModalBG"> | |
| <div class="inputBtAzulPModalEsq"> | |
| <div class="inputBtAzulPModalDir"> | |
| <div class="inputBtAzulPModal">Enviar</div> | |
| </div> | |
| </div> | |
| </div> |
This file contains hidden or 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
| #!/bin/bash | |
| convert -background transparent -gravity center -size 390x60 -font Impact-Normal label:"$2" yuno_base.jpg +swap -gravity south -composite yuno.jpg | |
| convert -background transparent -gravity center -size 390x60 -font Impact-Normal label:"$1" yuno.jpg +swap -gravity north -composite yuno.jpg |
This file contains hidden or 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
| class Foo | |
| @bar | |
| def initialize(bar) | |
| @bar = bar | |
| end | |
| def are_equal?(foo) | |
| b = foo.instance_variable_get :@bar | |
| b == @bar | |
| end | |
| end |
This file contains hidden or 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
| %w(rubygems sequel fileutils yaml active_support/inflector).each{|g| require g} | |
| require File.join(File.dirname(__FILE__), "downmark_it.rb") | |
| module Jekyll | |
| module WordPress | |
| def self.process(dbname = 'SEU_DB_NAME', user = 'SEU_DB_USER', pass = 'SEU_DB_PASS', host = 'localhost', table_prefix = 'wp_') | |
| db = Sequel.mysql(dbname, :user => user, :password => pass, :host => host, :encoding => 'utf8') | |
| %w(_posts _drafts images/posts/featured).each{|folder| FileUtils.mkdir_p folder} |