- Boring data science with kixi.stats
- Data Science up and down the Ladder of Abstraction
- Do We Really Need Dataframe in Clojure?
- Think Stats in Clojure: Part I Parsing the Data
- Think Stats in Clojure Part II: Cleaning and Augmenting Data
- Think Stats in Clojure Part III: Exploring Data
- Doing data science with Clojure: the ugly, the sad, the joyful
- https://cbds.netlify.com/2017/10/12/data-analysis-with-clojure/
- https://www.slideshare.net/simonbelak/doing-data-science-with-clojure-64130324
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import dash | |
import dash_core_components as dcc | |
import dash_html_components as html | |
from dash.dependencies import Input, Output | |
import pandas as pd | |
import sqlalchemy | |
import altair as alt | |
import io | |
from vega_datasets import data |
Altair [doesn't allow making maps (aka mark_geoshape
) interactive][altair-issue], since
geo markers do not yet support interaction in Vega-Lite
([vega/vega-lite#3306][vega-lite-issue]).
I stumbled upon this problem when I needed to only display information in only one US state, but the [official example][map-example] shows the full map of the US. Furthermore, it's not possible to set a fixed zoom, so that only one state is visible when the map is shown.
Social media is great for raising awareness but insufficient to create change in legislation. We encourage you to reach out directly if this issue matters to you.
- Australians: Contact your MP, on behalf of yourself, or your company (if you have the authority to do so). The EFA has a step-by-step guide on how to find out who your representative is, and the best way to get a result.
- Educate your friends, your colleagues, your family and ask them to also talk to their MPs.
- Australians and others: Submit a letter to the PJCIS by the end of March 2019. The inquiry is there to record concerns from anyone affected by the bill. Don’t hold off submitting because you think someone else will do it, or because you’re not sure what to say. Every entry helps our lawmakers see the breadth and depth of the impact of the new law.
- If you’re not an Australian, be aware that the appetite for this type of law is not limited to Australia. Stay informed and engaged with this topic in your part of
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
from ipaddress import ip_address | |
all_ips_tuples = itertools.product(range(256), repeat=4) | |
# these are generators, meaning they don't store all values in memory | |
ip_strings = ('.'.join(map(str, ip_tuple)) | |
for ip_tuple in all_ips_tuples) | |
ip_objects = (ip_address(ip_string) | |
for ip_string in ip_strings) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am kot-behemoth on github. | |
* I am gregoltsov (https://keybase.io/gregoltsov) on keybase. | |
* I have a public key ASAc_OJ-I8wpcOfOOTlG9C2S-3rKcwupAMyR4s4A_MW7sQo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# elementary arrays I'll use to define directions | |
pos = [i for i in range(4)] | |
neg = [-i for i in pos] | |
zer = [0]*4 | |
# First, compute the direction vectors. Given a coordinate and a direction vector, | |
# we can generate four coordinates in a desired direction. We'll care about 8 directions. | |
# Even though left/right, and up/down are the same, let's no worry about that for now. | |
# 1 2 3 | |
# \ | / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%!TEX TS-program = xelatex | |
\documentclass[12pt]{scrartcl} | |
% The declaration of the document class: | |
% The second line here, i.e. | |
% \documentclass[12pt]{scrartcl} | |
% is a standard LaTeX document class declaration: | |
% we say what kind of document we are making in curly brackets, | |
% and specify any options in square brackets. |
NewerOlder