Settings: System Preferences » Keyboard » Key Repeat/Delay Until Repeat
Use the commands below to increase the key repeat rate on macOS beyond the possible settings via the user interface. The changes aren't applied until you restart your computer.
Settings: System Preferences » Keyboard » Key Repeat/Delay Until Repeat
Use the commands below to increase the key repeat rate on macOS beyond the possible settings via the user interface. The changes aren't applied until you restart your computer.
This pass has the job of enforcing memory safety. This is a subtle topic. This docs aim to explain both the practice and the theory behind the borrow checker. They start with a high-level overview of how it works, and then proceed to dive into the theoretical background. Finally, they go into detail on some of the more subtle aspects.
| -- This is going to be on Hackage soon! https://github.com/gatlin/surely | |
| {-# LANGUAGE BangPatterns #-} | |
| -- | | |
| -- Module : AI.Surely | |
| -- Copyright : 2012 Gatlin Johnson | |
| -- License : LGPL 3.0 | |
| -- Maintainer : [email protected] | |
| -- Stability : experimental |
| """Compute solutions to the diophantine Pell equation x^2-D*y^2=1.""" | |
| import itertools | |
| def pell (D): | |
| """Return the smallest integer set solving Pell equation | |
| x^2-D*y^2=1 where x, D and y are positive integers. If there are no | |
| solution (D is a square), return None. | |
| >>> pell(3) |