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
// get a list of all compendium | |
game.packs.keys(); | |
// Select the pack you're workign with | |
const pack = game.packs.get('world.items5e'); | |
// Use this to get all the content of the pack | |
pack.getContent(); | |
// Build a data object of all the information you want to update. |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:ListBucket", | |
"s3:ListAllMyBuckets", | |
"s3:GetBucketLocation" | |
], |
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
window.TagManager = new class { | |
fireDomEvent(name, event) { | |
window.dataLayer.push({ | |
'event': 'gtm.' + name, | |
'gtm.element': event.target, | |
'gtm.elementClasses': event.target.className || '', | |
'gtm.elementId': event.target.id || '', | |
'gtm.elementTarget': event.target.target || '', | |
'gtm.elementUrl': event.target.href || event.target.action || '', |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Brad Kriss</title> | |
<style type="text/css"> | |
body, html | |
{ | |
margin: 0; padding: 0; height: 100%; overflow: hidden; | |
} |
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 Illuminate\Support\Facades\Input; | |
class Tracking | |
{ | |
public $linkVars = [ |
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\Email; | |
use App\Contracts\Email\Emailer; | |
use App\Contracts\Email\EmailMessage; | |
use App\EmailTemplate; | |
use App\Http\Controllers\Controller; | |
class MandrillSender extends Controller implements Emailer | |
{ |
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
<div class="btn-group" data-toggle="buttons"> | |
<label class="btn btn-default btn-yn-toggle"> | |
<input type="radio" name="priRes" id="#" value="1"> yes | |
</label> | |
<label class="btn btn-default btn-yn-toggle"> | |
<input type="radio" name="priRes" id="#" value="0"> no | |
</label> | |
</div> |
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
$(document).ready(function() { | |
$(".number").keydown(function(event) { | |
// Allow only tab, backspace, delete, left-right arrows, and select, copy & paste combos | |
var evtobj = window.event? event : e; | |
if ( event.keyCode == 37 || event.keyCode == 39 || event.keyCode == 46 || event.keyCode == 8 || event.keyCode == 9 || evtobj.ctrlKey && (evtobj.keyCode == 65 || evtobj.keyCode == 88 || evtobj.keyCode == 67 || evtobj.keyCode == 86)) { | |
// let it happen, don't do anything | |
} | |
else { | |
// Ensure that it is a number and stop the keypress | |
if (evtobj.shiftKey || event.keyCode < 48 || (event.keyCode > 57 && (event.keyCode < 96 || event.keyCode > 105) )) { |