Skip to content

Instantly share code, notes, and snippets.

@phillipmadsen
phillipmadsen / KAWEquipmentEnchantChart
Created March 6, 2017 22:34
Equipment Upgrade Chart
**Torrent Talisman** (drops from Scionic Storm)
>Max Enchant Level: 4
|Step|Cost| | **Troops** || **Spies** | |
| :--: | :----: | :----: |:------- | ----: | ---: | ---: | ---: |
| # | Inferno | Aqua | Attack | Defense | Attack | Defense |
| 1 | 1 | 0 | | 5,500,000 | | 1,000,000 |
| 2 | 1 | 0 | | 6,000,000 | | 1,500,000 |
| 3 | 1 | 0 | | 6,500,000 | | 2,000,000 |
<?php
//Configuration
$access = " Add License Key Here";
$userid = " Add User Id Here";
$passwd = " Add Password Here";
$accessSchemaFile = "Add AccessRequest Schema File";
$requestSchemaFile = "Add AVRequest Schema File";
$responseSchemaFile = "Add AVResponse Schema File";
[{
"name": "id",
"dbType": "increments",
"htmlType": "text",
"validations": "",
"searchable": false,
"fillable": false,
"primary": true,
"inForm": false,
"inIndex": false
[{
"name": "id",
"dbType": "string",
"dbType": "increments",
"htmlType": "",
"validations": "",
"searchable": false,
"fillable": false,
"primary": true,
"inForm": false,
@phillipmadsen
phillipmadsen / 2016_10_18_193110_create_dealers_table.php
Last active October 18, 2016 20:14
incorrectly generated migraton for dealers table
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateDealersTable extends Migration
{
public function up()
{
@phillipmadsen
phillipmadsen / Dealer.php
Created October 18, 2016 19:56
incorrectly generated dealer.php
<?php
namespace App\Models;
use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;
<?php
namespace App\Models;
@phillipmadsen
phillipmadsen / SentinelCartController.php
Created October 11, 2016 23:17
New Sentinel Cart Controller and helper file for the navigation cart
<?php
namespace App\Http\Controllers;
use App;
use App\Http\Controllers\Controller;
use App\Models\Cart;
use App\Models\OptionValue;
use App\Models\Order;
use App\Models\OrderProduct;
@phillipmadsen
phillipmadsen / CartController.php
Created October 11, 2016 23:13
Auth Cart Controller
<?php
namespace app\Http\Controllers;
class CartController extends Controller
{
public function __construct()
{
$this->middleware('auth', ['except' => [
'index',
@phillipmadsen
phillipmadsen / .bash_profile
Created August 31, 2016 06:28 — forked from paulocheque/.bash_profile
.bash_profile example
# EDITOR=nano sudo visudo
# Change the following line: (:i to insert + esc to go back + :w to save + :q to quit)
# Defaults env_reset
# to:
# Defaults env_reset,timestamp_timeout=960 # in minutes
export PATH=$PATH:.
# export PATH=$PATH:/usr/bin
@phillipmadsen
phillipmadsen / xdebug-enable.sh
Created August 25, 2016 03:28 — forked from christopher-hopper/xdebug-enable.sh
Enable PHP xdebug by moving the /etc/php.d/*.ini
#!/usr/bin/env bash
# vim:sw=3 ts=6 ft=sh
# Uses BASH3 Boilerplate
# More info:
# - https://github.com/kvz/bash3boilerplate
# - http://kvz.io/blog/2013/02/26/introducing-bash3boilerplate/
#
# Version 1.0.0
#
# Usage: