Cheatsheet for converting between different betting odds and calculating implied probability.
- Fav
- -110 = 100 / 110 + 1 = 1.909
- Dog
- +150 = 150 / 100 + 1 = 2.5
- Fav
- -110 = 100 / 110 = 10 / 11
- Dog
- +150 = 150 / 100 = 3 / 2
| # The MIT License | |
| # SPDX short identifier: MIT | |
| # Further resources on the MIT License | |
| # Copyright 2017 Denis Gladkikh (https://www.outcoldman.com/en/archive/2017/07/19/dbhist/) | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| #!/usr/bin/env python | |
| import csv | |
| from itertools import groupby | |
| from collections import Counter | |
| reader = csv.DictReader(open('MLB.CWEVENTS')) | |
| writer = csv.writer(open('sequences.csv', 'wb')) | |
| it = groupby(reader, key=lambda row: row['GAME_ID']) |
| <?xml version="1.0"?> | |
| <opml version="2.0"> | |
| <head> | |
| <title>Feeds for Journalists</title> | |
| <dateCreated>2018-01-15T20:13:26Z</dateCreated> | |
| <docs>https://github.com/edavis/feedsForJournalists</docs> | |
| <ownerId>https://github.com/edavis</ownerId> | |
| </head> | |
| <body> | |
| <outline type="rss" xmlUrl="http://beta.thehindu.com/news/?service=rss"/> |
| #!/usr/bin/env python | |
| import requests | |
| from collections import defaultdict | |
| r = requests.get('http://api.census.gov/data/2013/acs5/variables.json') | |
| acs = r.json()['variables'] | |
| c = defaultdict(list) | |
| for key, value in acs.iteritems(): |
| From 0d0691611f35f955c7211bd86696ddc6005c62a0 Mon Sep 17 00:00:00 2001 | |
| From: Eric Davis <[email protected]> | |
| Date: Sat, 4 Oct 2014 10:47:14 -0700 | |
| Subject: [PATCH] Add 'edavis/emacs' as an unofficial tap | |
| --- | |
| Interesting-Taps-&-Branches.md | 2 ++ | |
| 1 file changed, 2 insertions(+) | |
| diff --git a/Interesting-Taps-&-Branches.md b/Interesting-Taps-&-Branches.md |
| #!/usr/bin/env python | |
| """ | |
| Display a UTC timestamp lookup table to quickly translate UTC | |
| timestamps to your local timezone. | |
| Displays the value of the local timestamp in both 12 and 24-hour | |
| formats along with an asterisk next to the current hour. | |
| arrow <http://crsmithdev.com/arrow/> must be present to run. |
| <script type="text/javascript"> | |
| var _gaq = _gaq || []; | |
| _gaq.push(['_setAccount', 'UA-6492871-3']); | |
| _gaq.push(['_trackPageview']); | |
| (function() { | |
| var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |
| ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
| var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
| import sunlight, tablib | |
| lawmakers = sunlight.congress.legislators() | |
| names_and_twitter = tablib.Dataset(headers=('name', 'twitter')) | |
| for lawmaker in lawmakers: | |
| name = lawmaker['firstname'] + " " + lawmaker['lastname'] | |
| twitter = lawmaker['twitter_id'] | |
| names_and_twitter.append([name, twitter]) |