Skip to content

Instantly share code, notes, and snippets.

View alxy's full-sized avatar

Alexander Guth alxy

  • PwC Germany
  • Germany
View GitHub Profile
<?php namespace October\Rain\Support\Testing\Fakes;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Support\Testing\Fakes\MailFake as MailFakeBase;
use October\Rain\Mail\Mailable;
class MailFake extends MailFakeBase
{
/**
* Send a new message using a view.
/**
* Renders the reorder popup
*
* @param null $recordId
* @return mixed
* @throws \SystemException
*/
public function index_onShowReorderPopup($recordId = null) {
$this->reorder();
return $this->makePartial('reorder_form');
<?php
$this->client = new Client([
'base_url' => 'https://app.snipcart.com/api/',
'auth' => [
'ST_NTI3OTljM.......',
':'
],
'headers' => [
'accept' => 'application/json'
@alxy
alxy / gulpfile.js
Last active September 19, 2016 14:38
//
// Dependencies
//
var gulp = require('gulp');
var path = require('path');
var js = require('./gulp/js');
//
// Tasks
@alxy
alxy / output.json
Last active August 29, 2015 14:17
JSON-ouput
[
{
"ID": "231",
"post_title": "Testtest",
"post_content": "Lalalalalalala",
"post_excerpt": "",
"post_author": "14",
"post_type": "event",
"post_status": "publish",
"post_image": null
@alxy
alxy / filename.txt
Created February 17, 2015 15:06
This is an optional description
txt file content
PS C:\Users\alexa_000\Documents\Kunden\Say\code\october\plugins\rainlab\twitter> git remote rm origin
error: Could not remove config section 'remote.origin'
PS C:\Users\alexa_000\Documents\Kunden\Say\code\october\plugins\rainlab\twitter> git remote -v
origin
PS C:\Users\alexa_000\Documents\Kunden\Say\code\october\plugins\rainlab\twitter> git remote rm origin
error: Could not remove config section 'remote.origin'
PS C:\Users\alexa_000\Documents\Kunden\Say\code\october\plugins\rainlab\twitter> git remote rm origin
error: Could not remove config section 'remote.origin'
<?php
function generateHTML($elements, $formaters = array()) {
$doc = new DOMDocument;
$div = $doc->createElement('div');
$div->setAttribute('class', 'review-item');
$doc->appendChild($div);
$table = $doc->createElement('table');
$div->appendChild($table);
@alxy
alxy / index.php
Created January 21, 2014 14:16
4-Gewinnt
<?php
class Playground implements Serializable
{
public $rows = array();
public function __construct() {
}
<?php
require_once __DIR__.'/vendor/autoload.php';
return new Sami\Sami('/home/alxy/Vagrant/htdocs/laravel-bootstrap.dev/vendor/laravel/framework', array(
'theme' => 'default',
'title' => 'Laravel API',
'build_dir' => __DIR__.'/build',
'cache_dir' => __DIR__.'/cache',
'default_opened_level' => 2,