Skip to content

Instantly share code, notes, and snippets.

View Tjoosten's full-sized avatar
🌏
Somewhere between home and Hogwarts School of Witchcraft and Wizardry

Tim Joosten Tjoosten

🌏
Somewhere between home and Hogwarts School of Witchcraft and Wizardry
  • Polar Youth
  • Antwerp, BE
  • 06:19 (UTC +02:00)
  • X @x0rif
View GitHub Profile
Department of Homeland Security (DHS)
Federal Emergency Management Agency (FEMA)
Coast Guard (USCG)
Customs and Border Protection (CBP)
Border Patrol
Secret Service (USSS)
National Operations Center (NOC)
Homeland Defense
Immigration Customs Enforcement (ICE)
Agent
// Bootstrap
@import '~bootstrap/scss/bootstrap';
@import '~shards-ui/src/scss/shards';
$csv = Reader::createFromPath(database_path('seeds/sources/belgian-cities.csv'), 'r');
$csv->setHeaderOffset(0);
foreach ($stmt->process($csv) as $city) {
// Create a new province if not exists
$province = $provinces->firstOrCreate(['name' => $city['province']]);
// Create a new city in the database if not exists
$cityInformation = $cities->firstOrCreate([
// City information
@Tjoosten
Tjoosten / log
Last active August 31, 2018 12:35
[2018-08-31 14:33:01] production.ERROR: Undefined class constant 'HEADER_CLIENT_IP' {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Undefined class constant 'HEADER_CLIENT_IP' at /home/activi1q/config/trustedproxy.php:66)
[stacktrace]
#0 /home/activi1q/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(71): require()
#1 /home/activi1q/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(39): Illuminate\\Foundation\\Bootstrap\\LoadConfiguration->loadConfigurationFiles(Object(Illuminate\\Foundation\\Application), Object(Illuminate\\Config\\Repository))
#2 /home/activi1q/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(206): Illuminate\\Foundation\\Bootstrap\\LoadConfiguration->bootstrap(Object(Illuminate\\Foundation\\Application))
#3 /home/activi1q/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(297): Illuminate\\Foundation\\Application->bootstrapWith(Array)
#4 /home/
@Tjoosten
Tjoosten / view.blade.php
Last active June 22, 2018 19:03
Vraag omtrent line lenght: Hoe jij deze lijn opbreken zodat die in een max width van 85 past?
<input type="text" class="form-control form-control-sm @error('firstname', 'is-invalid')" @input('lastname') id="inputFirstname" placeholder="{{ __('starter-translations::users.placeholders.firstname') }}">
@Tjoosten
Tjoosten / repo.php
Created June 6, 2018 08:52
BUG: Method name must be a string
class SocialRepository
{
public function shareCrowdfund()
{
$social = Share::load('test', 'http://www.goolde.cla')->services(config('social.services'));
dd($social);
}
}
<!--
Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException: in file C:\Users\Gebruiker\Desktop\bloailer\vendor\laravel\framework\src\Illuminate\Routing\RouteCollection.php on line 255
Stack trace:
1. Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException-&gt;() C:\Users\Gebruiker\Desktop\bloailer\vendor\laravel\framework\src\Illuminate\Routing\RouteCollection.php:255
2. Illuminate\Routing\RouteCollection-&gt;methodNotAllowed() C:\Users\Gebruiker\Desktop\bloailer\vendor\laravel\framework\src\Illuminate\Routing\RouteCollection.php:242
3. Illuminate\Routing\RouteCollection-&gt;getRouteForMethods() C:\Users\Gebruiker\Desktop\bloailer\vendor\laravel\framework\src\Illuminate\Routing\RouteCollection.php:176
4. Illuminate\Routing\RouteCollection-&gt;match() C:\Users\Gebruiker\Desktop\bloailer\vendor\laravel\framework\src\Illuminate\Routing\Router.php:613
5. Illuminate\Routing\Router-&gt;findRoute() C:\Users\Gebruiker\Desktop\bloailer\vendor\laravel\framework\src\Illuminate\Ro
<?php
namespace Misfits\Http\Controllers\Admin\Helpdesk;
use Illuminate\Http\RedirectResponse;
use Illuminate\View\View;
use Misfits\Http\Controllers\Controller;
use Misfits\Http\Requests\Admin\Helpdesk\CategoryEditValidator;
use Misfits\Http\Requests\Admin\Helpdesk\CategoryValidator;
use Misfits\Repositories\CategoryRepository;
foreach v
{\displaystyle \in }
\in V(G) do d(v) =
{\displaystyle \infty }
<?php
namespace App\Http\Controllers;
use App\Repositories\NewsRepository;
use Illuminate\Http\Request;
use Illuminate\View\View;
/**
* Class NewsController