For example, the nowhere continuous function

    \[f(x) = \left\{\begin{matrix}1,~~ x\in \mathbb{Q}\\ 0,~~ x\notin \mathbb{Q}\end{matrix}\right.\]