Skip to content

Instantly share code, notes, and snippets.

View keiosweb's full-sized avatar

Keios Solutions keiosweb

View GitHub Profile
@keiosweb
keiosweb / csrf-disable-syntax
Last active August 29, 2015 14:23
Possible csrf disabling syntax for OctoberCMS
public function boot() {
$request = $this->app->make('request');
if ($request->is('should/not/be/csrf/checked/path/*')) {
$this->app->make('csrf')->disable();
}
}
// or, alternatively with facades
public function boot() {
// by Erik Wrenholt
import java.util.*;
class Mandelbrot
{
static int BAILOUT = 16;
static int MAX_ITERATIONS = 1000;
private static int iterate(float x, float y)
{