Let $\{q_k:\ k \in \mathbb N^+\}$ be an enumeration of the rational numbers in $[0,\ 1)$ and let $(a_k)$ be a sequence of strictly positive real numbers such that
$$ \sum_{k=1}^\infty a_k = 1 $$
Denote $S(x) = \{k \in \mathbb N^+:\ q_k \in [0,\ x)\}$ i.e. indices of rational numbers in $[0,\ x)$ and define $f:[0,\ 1] \rightarrow \mathbb R$ by
$$ f(x) = \begin{cases} \sum_{k \in S(x)} a_k & (x > 0) \\ 0 & (x = 0) \end{cases} $$
I know that $f(x)$ is discontinuous at every positive rational number. I speculate that $f(x)$ is continuous at irrational numbers, but I have no idea how to prove or disprove it.