#Getting Started
##Webpage:
<html>
<head>
<title>Testing with Ruby and Selenium WebDriver</title>
</head>
<body bgcolor="antiquewhite">
#Getting Started
##Webpage:
<html>
<head>
<title>Testing with Ruby and Selenium WebDriver</title>
</head>
<body bgcolor="antiquewhite">
/*global angular: true, google: true, _ : true */ | |
'use strict'; | |
angular.module('geocoder', ['ngStorage']).factory('Geocoder', function ($localStorage, $q, $timeout) { | |
var locations = $localStorage.locations ? JSON.parse($localStorage.locations) : {}; | |
var queue = []; | |
// Amount of time (in milliseconds) to pause between each trip to the |
/** | |
* Example of using an angular provider to build an api service. | |
* @author Jeremy Elbourn (@jelbourn) | |
*/ | |
/** Namespace for the application. */ | |
var app = {}; | |
/******************************************************************************/ |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | |
# THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | |
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | |
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
require 'tracer' | |
Tracer.add_filter do |event, file, line, id, binding, klass, *rest| |
require 'base64' | |
require 'cgi' | |
def show_session(cookie) | |
Marshal.load(Base64.decode64(CGI.unescape(cookie.split("\n").join).split('--').first)) | |
end |
class ActionDispatch::Routing::Mapper | |
def draw(routes_name) | |
instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb"))) | |
end | |
end | |
BCX::Application.routes.draw do | |
draw :api | |
draw :account | |
draw :session |
require 'rubygems' | |
require 'google_spreadsheet' | |
session = GoogleSpreadsheet.login("[email protected]", "kakadada") | |
spreadsheet = session.spreadsheet_by_key("0AlG-njvmBdlJdENlMzlVR3hTYUo1ZGhnck1NSm0yT3c") | |
ws = spreadsheet.worksheets[0] | |
ws[1, 1] = "Cześć" | |
ws[1, 2] = "Czołgiem" | |
ws.save |
// This file lives @ /Library/Application Support/Sublime Text 2/Packages/User/RubyTest.sublime-build | |
{ | |
"ruby_unit_exec": "~/bin/rvm_ruby ruby -Itest", | |
"ruby_cucumber_exec": "~/bin/rvm_ruby cucumber --no-color", | |
"ruby_rspec_exec": "~/bin/rvm_ruby rspec", | |
"ruby_unit_folder": "test", | |
"ruby_cucumber_folder": "features", | |
"ruby_rspec_folder": "spec" | |
} |
#! /bin/csh | |
while (1) | |
curl -s -L http://phobos.apple.com/version | grep -i Restore | grep -i "\(iPhone\|iPad\|iPod\)" | grep -i "5\.0" | |
if ($? == 1) then | |
echo "Nothing yet..."`date` | |
else | |
say "iOS FIVE POINT OH FIRMWARE IS NOW AVAILABLE" | |
endif | |
sleep 13 | |
end |