I hereby claim:
- I am andyfleming on github.
- I am andyfleming (https://keybase.io/andyfleming) on keybase.
- I have a public key whose fingerprint is D8F4 24C2 9204 1997 FA2B CA0B ADBB 0505 BCD9 4FD6
To claim this, I am signing this object:
-# Line below below has 2 problems | |
-# 1. The forward slash in the file path causes the rest of the line to show as commented out. | |
-# 2. The "href" attribute gets grouped with the "%link" tags coloring | |
%link(href="ui/css/screen.css" rel="stylesheet" type="text/css" media="screen, projection") | |
-# Line directly below has the same problem with the forward slash | |
%link( href="ui/css/print.css" rel="stylesheet" type="text/css" media="print") | |
-# The below highlights correctly without the forward slash causing a comment problem, | |
-# but it would be nice if attributes could be colored differently |
<?php | |
namespace App\Http\Controllers; | |
use \Illuminate\Database\Connection; | |
class DatabaseTestController extends Controller | |
{ | |
/** |
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Database\DatabaseManager; | |
class StatsController extends Controller | |
{ | |
/** |
<?php | |
return [ | |
'default' => 'accounts', | |
'connections' => [ | |
'accounts' => [ | |
'driver' => 'mysql', |
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Database\DatabaseManager as DB; | |
class DatabaseTestController extends Controller | |
{ | |
/** |
I hereby claim:
To claim this, I am signing this object:
jQuery.ajax({ | |
url: '/-api/user/profile', | |
xhrFields: { | |
withCredentials: true | |
}, | |
success: function(data, textStatus, jqXHR) { | |
console.log(data.data.first_name) | |
}, | |
error: function(jqXHR, textStatus, errorThrown) { | |
if (jqXHR.status === 401) { |
<form action="/-api/stripe/checkout" method="POST"> | |
<!-- Values for Zesty --> | |
<input type="hidden" name="amount" value="1199"><!-- should match data-amount below (in cents) --> | |
<input type="hidden" name="success_redirect" value="/thank-you/"> | |
<input type="hidden" name="failure_redirect" value="/payment-error/"> | |
<input type="hidden" name="charge_description" value="Purchase on example.com"> | |
<!-- Stripe Checkout button settings --> | |
<script src="https://checkout.stripe.com/checkout.js" class="stripe-button" |
<form action="/-api/stripe/checkout" method="POST" id="donation-form"> | |
<!-- Input field for user --> | |
<input type="number" name="donation_amount" value="5"> | |
<!-- Values for Zesty --> | |
<input type="hidden" name="amount" value="500"> | |
<input type="hidden" name="success_redirect" value="/thank-you-for-your-donation/"> | |
<input type="hidden" name="failure_redirect" value="/an-error-occurred-with-your-donation/"> | |
<input type="hidden" name="charge_description" value="Donation on example.com"> |
<form action="/-api/stripe/subscribe" method="POST"> | |
<!-- Plan to subscribe to --> | |
<!-- "value" must match plan ID in Stripe --> | |
<select name="plan_id"> | |
<option value="plan1">Plan 1</option> | |
<option value="plan2">Plan 2</option> | |
<option value="plan3">Plan 3</option> | |
</select> | |