This is ported version of color theme xoria256.
Merge mintty-color-xoria256-rc into your .minttyrc
def select_by_value(id, value) | |
option_xpath = "//*[@id='#{id}']/option[@value='#{value}']" | |
option = find(:xpath, option_xpath).text | |
select(option, :from => id) | |
end | |
Save in a .rb file in spec/support/ (Optional) | |
Example use: | |
before do |
it's probably screen | |
Ctrl + a | |
Ctrl + r | |
until it says +wrap |
=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') |
e.g. cd Program*Files/ | |
cd Program\ Files\ \(x86\) | |
In your .bashrc | |
alias cdc='cd /cygdrive/c' | |
alias cdp='cd /cygdrive/c/Program*Files/' | |
alias cdpx='cd /cygdrive/c/Program\ Files\ \(x86\)' |
Install git on Cygwin | |
Might be an error - Can’t locate Term/ReadKey.pm when running git svn clone ... | |
In that case do this: | |
----------------------------------------- | |
Install GCC-core, make for cygwin | |
Install Perl - Term::ReadKey through cygwin as well | |
----------------------------------------- |
QUnit.begin(function(obj) { | |
console.log("Test amount:" + obj.totalTests); | |
}); | |
QUnit.moduleStart(function (obj) { | |
console.log("##teamcity[testSuiteStarted name='" + obj.name + "']"); | |
}); | |
QUnit.moduleDone(function (obj) { | |
console.log("##teamcity[testSuiteFinished name='" + obj.name + "']"); |
#if you haven't already | |
1. Install chere | |
#Run the line below in terminal | |
chere -i -t mintty -f | |
Add external tools on WebStorm(Settings): | |
Program: C:\cygwin64\bin\mintty.exe |
var msiversion = function msieversion() { | |
var ua = window.navigator.userAgent; | |
var msie = ua.indexOf("MSIE "); | |
if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) // If Internet Explorer, return version number | |
{ | |
return true; | |
} else { // If another browser, | |
return false; | |
} | |
return false; |
$ a=/cygdrive/c/projects/sandbox/projects | |
##match pattern from the left hand side. Double # means greedy. | |
hsuh@hsuh /cygdrive/c/projects/sandbox/projects | |
$ echo ${a##*sandbox} | |
/projects | |
##match pattern from the right hand side. Double % means greedy. | |
hsuh@hsuh /cygdrive/c/projects/sandbox/projects | |
$ echo ${a%%proj*} |