Skip to content

Instantly share code, notes, and snippets.

View yuliabro's full-sized avatar

Yulia yuliabro

  • Cerego Japan
  • Tokyo
View GitHub Profile
@yuliabro
yuliabro / Params handling w CGI
Created February 4, 2013 07:07
The Common Gateway Interface (CGI) is a simple protocol for passing an HTTP request from a web server to a standalone program, and returning the output to the web browser.
=> "x=twowords&y=twowords"
>> q = "x=two+words&y=two%20words"
=> "x=two+words&y=two%20words"
>> CGI.unescape(q)
=> "x=two words&y=two words"
>> URI.unescape(q)
=> "x=two+words&y=two words"
>> CGI.unescape(q).gsub(' ', '')
=> "x=twowords&y=twowords"
@yuliabro
yuliabro / 1.png
Created September 17, 2012 12:08 — forked from jeffkreeftmeijer/1.png
Delta-E image diff
1.png
@yuliabro
yuliabro / 1.png
Created September 17, 2012 11:58 — forked from jeffkreeftmeijer/1.png
Simple image diff
1.png
@yuliabro
yuliabro / page_gist.rb
Created January 3, 2012 05:58
Page model init
class Page
# include IknowNavigationHelper #NOTE - This must precede SeleniumTestHelper or else test setup will fail
# include SeleniumTestHelper
def initialize(driver, test_case) # method that passes the selenium object
@driver = driver
@test = test_case
setup_instance_elements(driver)
end