sudo apt-get install git # in ubuntu
brew install git # in mac
.ui-autocomplete { | |
position: absolute; | |
top: 100%; | |
left: 0; | |
z-index: 1000; | |
float: left; | |
display: none; | |
min-width: 160px; | |
_width: 160px; | |
padding: 4px 0; |
//Get a reference to the alert using the following: | |
alert = page.driver.browser.switch_to.alert | |
// and then hit OK with | |
page.driver.browser.switch_to.alert.accept | |
// or dismiss it with |
=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') |
SSH into Root
$ ssh [email protected]
Change Root Password
Watch video here... | |
http://railscasts.com/episodes/347-rubber-and-amazon-ec2 |
1) What does the following code print? | |
p ["tommy", "chuckie"].map(&:upcase) | |
---------------------------------------------------------------------------------------------- | |
2) Write a programe for this. | |
colors = ['red', 'violet', 'blue'] | |
Use the colors array to construct the following array: | |
[['red', 1], ['violet', 2], ['blue', 3]] | |
----------------------------------------------------------------------------------------------- | |
3) Create an array of all the numbers between 1 and 100 that are divisible by both 3 and 5. |
### USAGE | |
### | |
### ./ElasticSearch.sh 1.5.0 will install Elasticsearch 1.5.0 | |
### ./ElasticSearch.sh 1.4.4 will install Elasticsearch 1.4.4 | |
### ./ElasticSearch.sh will fail because no version was specified (exit code 1) | |
### | |
### CLI options Contributed by @janpieper | |
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch | |
### ElasticSearch version |
1) Write a program to Read line from text and sort with number of lines | |
#sample.txt | |
"Its great" | |
"How are you" | |
"I am fine thank you" | |
"Hi Ruby" |
https://www.airpair.com/js/javascript-framework-comparison | |
http://iarouse.com/dist-material-tf/v1.3/index.html#/forms/elements | |
http://www.frontcoded.com/rails-on-amazon-ec2-ubuntu.html | |
http://docs.aws.amazon.com/general/latest/gr/rande.html#ddb_region |