This file contains hidden or 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
| require 'watir-webdriver' | |
| firefox_instance = Watir::Browser.new :firefox | |
| firefox_instance.goto 'http://bit.ly/M1mjNB' | |
| firefox_instance.close |
This file contains hidden or 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
| require 'rubygems' | |
| require 'watir-webdriver' | |
| require 'rspec' | |
| describe "Look for browser elements" do | |
| FIRST_NAME = 'Guilherme' | |
| before(:each) {puts 'inicou'} | |
| after(:each) {@firefox.close unless @firefox.nil?} |
This file contains hidden or 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
| #!/bin/bash | |
| clear | |
| echo -e "Preparing to start ...\n" | |
| cd /Users/gelias/workspace/ruby | |
| echo -e "removing oldest version ... \n" | |
| rm -rf /Users/gelias/workspace/ruby/cardapiaria | |
| echo -e "using ruby version 1.9.3 and Rails 3.2" | |
| rvm 1.9.3@rails32 |
This file contains hidden or 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
| #!/bin/bash | |
| # Create temp folder to download rpms | |
| mkdir /tmp/rpms | |
| cd /tmp/rpms | |
| # Download HTOP, ATOP, MOST | |
| yum install htop atop most -y |
This file contains hidden or 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
| <error-page> | |
| <error-code>404</error-code> | |
| <location>/404.html</location> | |
| </error-page> |
This file contains hidden or 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
| require 'rubygems' | |
| require 'rest-client' | |
| require 'xmlsimple' | |
| class Resource | |
| TOKEN = "PUT_YOUR_TOKEN_HERE" | |
| BASE_URL = "http://api.umov.me/CenterWeb/api/#{TOKEN}" | |
| def resource_name |
This file contains hidden or 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
| require 'rubygems' | |
| require 'sinatra' | |
| set :port => 80 | |
| get '/' do | |
| "Welcome" | |
| end | |
This file contains hidden or 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
| -- Create database diarioclasse | |
| CREATE DATABASE diarioclasse | |
| WITH OWNER = postgres | |
| ENCODING = 'UTF8' | |
| TABLESPACE = pg_default | |
| CONNECTION LIMIT = -1; | |
| -- Connect to database diarioclasse | |
| -- Create sequence pessoa_codigo |
This file contains hidden or 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
| wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz" -O jdk-7u80-linux.tar.gz | |
| tar zxvf jdk-7u80-linux.tar.gz |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.Web; | |
| namespace ConsoleAPI |
OlderNewer