Skip to content

Instantly share code, notes, and snippets.

View drorata's full-sized avatar

Dror Atariah drorata

View GitHub Profile
@drorata
drorata / demo2.ipynb
Created November 17, 2024 07:35 — forked from dr-dror/demo2.ipynb
Playing around with Generic types
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@drorata
drorata / demo.ipynb
Created November 17, 2024 07:35 — forked from dr-dror/demo.ipynb
Compute utilization using PySpark
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@drorata
drorata / demo.ipynb
Created November 17, 2024 07:35 — forked from dr-dror/demo.ipynb
Example around mutable default values of functions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@drorata
drorata / demo.ipynb
Created November 17, 2024 07:34 — forked from dr-dror/demo.ipynb
Pivot a dataframe directly using Spark SQL
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@drorata
drorata / demo.ipynb
Created November 17, 2024 07:34 — forked from dr-dror/demo.ipynb
Dataclasses highlights
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@drorata
drorata / demo.ipynb
Created November 17, 2024 07:33 — forked from dr-dror/demo.ipynb
Class vs. instance attributes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@drorata
drorata / buergerbot.rb
Last active October 30, 2021 12:25 — 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'
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