Skip to content

Instantly share code, notes, and snippets.

https://gist.github.com/n00neimp0rtant/9515611
@sascha10000
sascha10000 / Project Euler-Solver
Created July 18, 2018 13:04
A simple class to test your results for project Euler with a simple function. Just call Solver(1, 233168) to check if 233168 is the solution for Problem Nr 1.
# Solution-Checker
def Solver(problemNr, yourResult):
solutions = """1. 233168
2. 4613732
3. 6857
4. 906609
5. 232792560
6. 25164150
7. 104743
8. 23514624000
@collegeman
collegeman / Handler.php
Last active September 5, 2022 06:59
Boilerplated files for Lumen-based WordPress plugins
<?php
namespace App\Exceptions;
use Exception;
use Illuminate\Validation\ValidationException;
use Illuminate\Auth\Access\AuthorizationException;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Laravel\Lumen\Exceptions\Handler as ExceptionHandler;