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 September 10, 2025 13:19
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 2025-06-29
// latest changes:
// not showing invalid charging kW when not available - thanks to dehsgr! <3
// add your my-renault account data:
let myRenaultUser = "your_email" // email
let myRenaultPass = "your_password" // password