Skip to content

Instantly share code, notes, and snippets.

@tacahiroy
tacahiroy / env.rb
Created November 12, 2015 16:10
The way to specify window size in Capybara driver for Chrome
Capybara.register_driver :chrome do |app|
opts = {
browser: :chrome,
switches: %w( --test-type --window-size=1280,1024 )
}
Capybara::Selenium::Driver.new(app, opts)
end
@mountbatt
mountbatt / ZOE-Widget.js
Last active October 4, 2024 08:16
Scriptable iOS widget that displays the status of your Renault ZOE (or Megane, Dacia Spring) on your iPhone and iPad.
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: light-gray; icon-glyph: car;
// version 2024-04-19
// latest changes:
// new kameron api key
// added language strings so you can translate it by yourself!
// add your my-renault account data:
// let myRenaultUser = "user" // email