save_and_open_page
have_button(locator)
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Web; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Text.RegularExpressions; | |
using System.Collections; | |
using System.IO; |
#!/bin/env ruby | |
# encoding: utf-8 | |
require 'vidibus/core_extensions' | |
documents = { | |
:D1 => "lucene é um sistema de recuperação de informação, não de dados", | |
:D2 => "quicksort é um algoritmo de ordenação de dados usado em banco de dados", | |
:D3 => "os banco de dados relacionais armazenam e recuperam informação" , | |
:D4 => "em um projeto de algoritmos estruturas de dados são fundamentais", | |
:D5 => "qual o melhor algoritmo para recuperação de dados?", |
<div class="span3"> | |
<% last_user_accounts = library.library_items.order("created_at desc").map(&:uploaded_by_user_account).uniq %> | |
<% count = 0 %> | |
<% last_user_accounts.each do |user_account| %> | |
<% count += 1 %> | |
<% break if count == 7 %> | |
<% image = icon_32x32('user-silhouette') %> | |
<% if user_account.user.has_remote_picture? %> | |
<% image = image_tag(get_user_picture_url(user_account.user), :style => 'width:32px', :rel => 'tooltip', :title => user_account.user.full_name) %> | |
<% end %> |
# This is a skeleton for testing models including examples of validations, callbacks, | |
# scopes, instance & class methods, associations, and more. | |
# Pick and choose what you want, as all models don't NEED to be tested at this depth. | |
# | |
# I'm always eager to hear new tips & suggestions as I'm still new to testing, | |
# so if you have any, please share! | |
# | |
# @kyletcarlson | |
# | |
# This skeleton also assumes you're using the following gems: |
=> Impelmentação Objeto-Relacional no Oracle | |
=> Jônatas Santos | |
1 - create type t_endereco as object (rua varchar2(40), cidade varchar2(30), uf varchar2(2),cep number(8)); | |
#= Tipo criado | |
2 - create type t_funcionario as object (matricula number(5), nome varchar2(30), data_admissao date, enderecot_endereco); | |
#= Tipo criado | |
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
span { | |
border-left: 2px solid; | |
} | |
.cursor { | |
-webkit-animation: blink .75s linear infinite; | |
-moz-animation: blink .75s linear infinite; | |
-ms-animation: blink .75s linear infinite; | |
-o-animation: blink .75s linear infinite; | |
animation: blink .75s linear infinite; |
//Servlet | |
protected void doDelete(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { | |
HttpSession session = request.getSession(); | |
Pedido pedido = (Pedido)session.getAttribute("pedido"); | |
String produto = request.getParameter("produto"); | |
if (pedido == null) | |
request.setAttribute("items", new ArrayList<ItemPedido>()); | |
else { | |
if( produto != null) |
input = File.new("dimens.xml", "r") | |
output = File.new("output.xml", "w") | |
scale = 360/320.0 | |
input.each_line do |line| | |
puts "Converting #{line}" | |
if line.include? '<!--' or line.length == 0 | |
output.puts line | |
else |