Skip to content

Instantly share code, notes, and snippets.

View Vasilije1990's full-sized avatar

Vasilije Vasilije1990

View GitHub Profile
@Vasilije1990
Vasilije1990 / 0_reuse_code.js
Created June 2, 2017 09:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Vasilije1990
Vasilije1990 / buergerbot.rb
Created April 18, 2016 17:13 — forked from pbock/buergerbot.rb
Bürgerbot: Refreshes the Berlin Bürgeramt page until an appointment becomes available, then notifies you.
#!/usr/bin/env ruby
require 'watir-webdriver'
def log (message) puts " #{message}" end
def success (message) puts "+ #{message}" end
def fail (message) puts "- #{message}" end
def notify (message)
success message.upcase
system 'osascript -e \'Display notification "Bürgerbot" with title "%s"\'' % message
rescue StandardError => e