Skip to content

Instantly share code, notes, and snippets.

@timbotron
timbotron / composer.json
Last active April 24, 2023 21:01
Great php API
{
"require": {
"catfan/Medoo": "^2.1",
"aaronholbrook/autoload": "^1.2",
"nikic/fast-route": "^1.3",
"vlucas/valitron": "^1.4",
"league/plates": "^3.5"
}
}
@timbotron
timbotron / collatz.php
Created April 12, 2016 16:41
Collatz Solve
<?php
/*
The following iterative sequence is defined for the set of positive integers:
n → n / 2 (n is even)
n → 3n + 1 (n is odd)
Using the rule above and starting with 13, we generate the following sequence:
13 → 40 → 20 → 10 → 5 → 16 → 8 → 4 → 2 → 1
@timbotron
timbotron / blocklist.txt
Created September 21, 2015 16:42
Productivity Hack
# Tims Productivity List for /etc/hosts
127.0.0.1 www.reddit.com
127.0.0.1 reddit.com
127.0.0.1 i.imgur.com
127.0.0.1 imgur.com
127.0.0.1 www.imgur.com
127.0.0.1 forums.somethingawful.com
127.0.0.1 somethingawful.com
127.0.0.1 digg.com
@timbotron
timbotron / output.txt
Created June 9, 2015 17:53
Example of Sectors
+-(1,6)--------------------------+-(2,6)--------------------------+-(3,6)--------------------------+
| | | |
| | | * SNXG-5691 |
| * Megrez | | |
| | | |
| | * GWWR-5398 | |
| | | |
| | | |
| | * LYSS-5554 | |
| | | |