This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addConditionalPlugins(plugins) { | |
const config = AppConfig.get(); | |
if (config.responseCacheEnabled) { | |
plugins.push( | |
responseCachePlugin({ | |
sessionId: async (requestContext) => | |
requestContext.request.http?.headers.get("sc-user") ?? null, | |
}) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@charset "utf-8"; | |
/************************************************* | |
ABOVE THE REST LUXURY CABINS | |
Custom CSS for Design System | Michael Crowe | |
*************************************************/ | |
/* TOKENS | |
============================================== | |
Color scale */ | |
:root { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use ExactTarget\ET_Get; | |
use ExactTarget\ET_Client; | |
use ExactTarget\ET_Subscriber; | |
use Illuminate\Http\Request; | |
class TestController extends Controller | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>For Randy</title> | |
<style type="text/css"> | |
.column { | |
float: left; | |
width: 23%; | |
background: #ccc; | |
margin: 10px 1%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼ SCREEN-SIZE LOGIC ▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲▼▲// | |
$(document).ready(function() { | |
$window = $(window); | |
function makeColumnHeightsMatch(container) { | |
let elementHeights = $(container).map(function() { | |
return $(this).height(); | |
}).get(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
use Exception; | |
use Illuminate\Contracts\Auth\Access\Gate; | |
use Illuminate\Contracts\Cache\Repository; | |
use Log; | |
use App\Contracts\Permission; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers\API; | |
use App\Repositories\CategoryRepository; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Http\Request; | |
use App\Permission; | |
use App\Category; | |
use Debugbar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//So you have your pivot table all set up.... So in a "Role," model (ha!) you would set up a many to many relationship like so: | |
<?php | |
public function users() | |
{ | |
return $this->belongsToMany('\App\User'); | |
} | |
//and in your User model you would do something like: | |
public function roles() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Execute the command. | |
* | |
* @return void | |
*/ | |
public function handle() | |
{ | |
//boostrap SDK | |
$slncClient = new ET_Client('slnc'); | |
$postDE = new ET_DataExtension(); |