save_and_open_page
have_button(locator)| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:orientation="vertical" > | |
| <TextView android:id="@+id/text" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:text="Hello, I am a TextView" /> | |
| <Button android:id="@+id/button" | |
| android:layout_width="wrap_content" |
| gedit & | |
| PID=$! | |
| while :; do | |
| sleep 3 | |
| ps -up $PID | |
| echo "... get info about"$PID | |
| done |
| #!bin/bash | |
| #wget https://download.mozilla.org/?product=firefox-33.0.2-SSL&os=linux64&lang=en-US | |
| cd ~/Downloads/ | |
| cp firefox-33.0.2.tar.bz2 /opt/ | |
| cd /opt/ | |
| tar -xvf firefox-33.0.2.tar.bz2 | |
| rm firefox-33.0.2.tar.bz2 |
| require 'yahoo-finance' | |
| stocks = ["PETR3.SA"] | |
| yahoo_client = YahooFinance::Client.new | |
| data = yahoo_client.quotes( stocks, [:close]) | |
| File.open("quotes.csv", "w+") do |file| | |
| stocks.size.times do |x| | |
| file.puts "\"#{stocks[x]}\",#{data[x].close}" |
| vimdiff <(grep 'include Active$' -R . | awk '{ print $1 }' | cut -f1 -d: | cut -f2 -d/ | sort -u ) <(ls | sort -u) |
| :args *.rb | argdo execute "normal gg=G" | update | |
| # http://stackoverflow.com/questions/3218528/indenting-in-vim-with-all-the-files-in-folder |
| #!/bin/bash | |
| confirm () { | |
| # call with a prompt string or use a default | |
| read -r -p "${1:-Are you sure? [y/N]} " response | |
| case $response in | |
| [yY][eE][sS]|[yY]) | |
| true | |
| ;; | |
| *) | |
| false ;; |
| #!/bin/bash | |
| awk 'NR==FNR{a[$1];next}!($1 in a)' <(ls | sed 's/_spec.rb//g' | sort) <(ls ../../app/models/ | sed 's/.rb\|.bak//g' | uniq | sort) | awk '{ print "- [ ]",$1 }' | xclip -sel clip |
| for i in $(ls -d pfcm*); do echo -n "$i "; cat $i/discover.arff | grep "class " | cut -f2 -d{ | awk '{n=split($0,a,","); print n}'; done >> clusters_count.txt |