Skip to content

Instantly share code, notes, and snippets.

View drorata's full-sized avatar

Dror Atariah drorata

View GitHub Profile
@drorata
drorata / example.csv
Created May 4, 2022 15:30
Sample data for the SO question
time open high low close volume
2022-03-04 09:00:00 1.05 1.05 1.05 1.05 144
2022-03-04 09:30:00 1.04 1.04 1.04 1.04 403
2022-03-04 10:00:00 1.03 1.04 1.03 1.0389 12273
2022-03-04 10:30:00 1.03 1.04 1.01 1.0149 14825
2022-03-04 11:00:00 1.0102 1.015 1.0 1.0099 28059
2022-03-04 11:30:00 1.005 1.01 1.0 1.0 23724
2022-03-04 12:00:00 1.0101 1.0443 1.0 1.0443 1450
2022-03-04 13:00:00 1.0101 1.0322 1.01 1.025 15153
2022-03-04 13:30:00 1.0146 1.04 1.0146 1.04 309
@drorata
drorata / Categorical A-B test sandbox.ipynb
Last active February 21, 2022 10:46
Some discussion around A/B Tests
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@drorata
drorata / notebook.ipynb
Created November 7, 2021 09:40
FB predictions using LSTM
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
@drorata
drorata / d3-graph.html
Created February 15, 2021 10:25
Minimal example of a graph drawing using D3
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.links line {
stroke: #999;
stroke-opacity: 0.6;
}
.nodes circle {
stroke: #fff;
@drorata
drorata / .env
Created November 11, 2020 16:00
Basic querying example
HIVE_HOST=my.location.com
HIVE_USERNAME=user.name
HIVE_PASSWORD=my_passWord
# Settings for mac at HF
source ~/antigen.zsh
antigen use oh-my-zsh
antigen bundle git
# antigen bundle pip
antigen bundle aws
antigen bundle docker
@drorata
drorata / .zshrc
Last active February 11, 2020 07:55
ZSH setting
source ~/antigen.zsh
antigen use oh-my-zsh
antigen bundle git
# antigen bundle pip
antigen bundle aws
antigen bundle docker
antigen bundle brew
antigen bundle osx
@drorata
drorata / Interacting with a Spark cluster from local machine.ipynb
Created November 6, 2019 07:56
Very minimal example with Livy and sparkmagic
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@drorata
drorata / mapping-strings-to-floats.ipynb
Created July 10, 2019 16:25
Casting values carefully using dask
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.