Skip to content

Instantly share code, notes, and snippets.

View DuckThom's full-sized avatar

Thomas Wiringa DuckThom

  • Groningen, The Netherlands
View GitHub Profile
<?php
namespace App\Http\Controllers;
use App\Services\Interfaces\ExportServiceInterface as ExportService;
class ExportController extends Controller
{
protected $es;
const request = require('request');
const cheerio = require('cheerio');
let url = process.argv[2];
console.log("Loading current Apple order status...\n\n");
request(url, function (error, response, body) {
if (error) {
throw error;
@DuckThom
DuckThom / Splitter.php
Created March 15, 2017 08:57
Split the street from the housenumber with a regex
<?php
namespace Luna\Splitter;
class Splitter
{
/**
* Split the street from the number
*
* @param string $address
/*
|--------------------------------------------------------------------------
| Detect The Application Environment
|--------------------------------------------------------------------------
|
| Laravel takes a dead simple approach to your application environments
| so you can just specify a machine name for the host that matches a
| given environment, then we will automatically detect it for you.
|
*/
@DuckThom
DuckThom / designer.html
Last active August 29, 2015 14:10
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../topeka-elements/avatars.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<polymer-element name="my-element">