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
<root> | |
<a> | |
<b>123</b> | |
<b>456</b> | |
<b>789</b> | |
</a> | |
<a> | |
<b>foo</b> | |
</b>bar</b> | |
</a> |
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
The reason we're using "element" is because the html contains a "dl" element. | |
--------------- | |
class HeaderInfo | |
include PageObject | |
element(:merchant, :id => 'merchant-name') | |
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
if (!(this == null && rhs == null || code == null && rhs.code == null) && | |
(this == null && rhs != null || | |
this != null && rhs == null || | |
code != null && rhs.code == null || | |
code == null && rhs.code != null || | |
!code.equals(rhs.code))) { | |
return false; | |
} |
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
for (int i = 0; i < GEN_OFFSET_FILE_SKIPLINE_VERSION2 && br.readLine() != null; i++) { | |
// empty block | |
} |
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
Ext.define('CustomApp', { | |
extend: 'Rally.app.App', | |
componentCls: 'app', | |
launch: function() { | |
var calculateCycleTime: function(acceptedDate, inProgressDate) { | |
var cycleTime = Math.round(Ext.Date.getElapsed(acceptedDate,inProgressDate) / 1000 / 60 / 60 / 24); | |
if (cycleTime === 0) cycleTime = 1; | |
return cycleTime; |
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
[~] ➔ brew doctor | |
Your system is raring to brew. | |
[~] ➔ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew upgrade | |
==> Upgrading vim | |
ln -s ../Cellar/vim/7.3.666/bin/xxd xxd | |
ln -s ../Cellar/vim/7.3.666/bin/vimtutor vimtutor | |
ln -s ../Cellar/vim/7.3.666/bin/vimdiff vimdiff | |
ln -s ../Cellar/vim/7.3.666/bin/vim vim | |
ln -s ../Cellar/vim/7.3.666/bin/view view |
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
productowner Fri Oct 19 10:24:28 2012 | |
developer1 Fri Oct 19 10:07:17 2012 | |
developer1 Thu Oct 18 23:26:51 2012 | |
developer1 Thu Oct 18 21:41:53 2012 | |
developer1 Thu Oct 18 19:29:35 2012 | |
productowner Thu Oct 18 13:40:30 2012 | |
developer2 Thu Oct 18 13:28:58 2012 | |
developer2 Thu Oct 18 13:28:41 2012 | |
developer2 Thu Oct 18 13:28:33 2012 | |
developer2 Thu Oct 18 13:28:26 2012 |
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
puts 'What are your favorite movies?' | |
movies = Array.new | |
3.times do |index| | |
print "#{index + 1}: " | |
movies << gets | |
end | |
puts 'Your reversed movies are:' |
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
[/tmp/test] ➔ cat > one.txt | |
[/tmp/test] ➔ ls | |
one.txt | |
[/tmp/test] ➔ irb | |
irb(main):001:0> require 'fileutils' | |
=> true | |
irb(main):002:0> FileUtils.mv 'one.txt', 'two.txt' | |
=> 0 | |
irb(main):003:0> exit | |
[/tmp/test] ➔ ls |
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
import java.io.BufferedWriter; | |
import java.io.FileWriter; | |
import java.io.Writer; | |
import org.junit.Test; | |
public class SizeTest { | |
@Test | |
public void write_stringbuilder_to_file() throws Exception { |