Skip to content

Instantly share code, notes, and snippets.

View pigalot's full-sized avatar

pigalot pigalot

View GitHub Profile
https://github.com/ajafff/tslint-consistent-codestyle
npm install --save-dev tslint-consistent-codestyle
// GIST: https://gist.github.com/shdwjk/ed16764c268129afff22
/* ############################################################### */
/* TurnMarker */
/* ############################################################### */
var TurnMarker = TurnMarker || {
version: 1.16,
active: false,
threadSync: 1,
@pigalot
pigalot / D&D4e.css
Last active August 29, 2015 14:01
D&D4e CSS
/* CSS Reset */{}
.charsheet .sheet-wrapper div, .charsheet .sheet-wrapper span, .charsheet .sheet-wrapper label,
.charsheet .sheet-wrapper h1, .charsheet .sheet-wrapper h2, .charsheet .sheet-wrapper h3, .charsheet .sheet-wrapper h4, .charsheet .sheet-wrapper h5, .charsheet .sheet-wrapper h6, .charsheet .sheet-wrapper p,
.charsheet .sheet-wrapper table, .charsheet .sheet-wrapper caption, .charsheet .sheet-wrapper tbody, .charsheet .sheet-wrapper tfoot, .charsheet .sheet-wrapper thead, .charsheet .sheet-wrapper tr, .charsheet .sheet-wrapper th, .charsheet .sheet-wrapper td {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
color: #404040;
@pigalot
pigalot / D&D4e.html
Last active August 29, 2015 14:01
D&D4e
This file has been truncated, but you can view the full file.
<div class="sheet-wrapper">
<div>
<div class="sheet-baseinfo"><input type="text" name="attr_character_name" /><label>Character Name</label></div>
<div class="sheet-baseinfo sheet-number"><input type="text" name="attr_level" value="1" /><label class="">Level</label></div>
<input type="hidden" name="attr_halflevel" value="floor(@{level}/2)" disabled = "true"/>
<div class="sheet-baseinfo"><input type="text" name="attr_class" /><label>Class</label></div>
<div class="sheet-baseinfo"><input type="text" name="attr_paragon" /><label>Paragon Path</label></div>
<div class="sheet-baseinfo"><input type="text" name="attr_epic" /><label>Epic Destiny</label></div>
<div class="sheet-baseinfo"><input type="text" name="attr_xp" /><label>Total XP</label></div>
var AlexL = AlexL || {}; /* Name Space off the script */
var HoneyB = {};
AlexL.utility = {};
AlexL.combatAutomation = {};
AlexL.combatAutomation.config = {};
state.AlexL = state.AlexL || {};
state.AlexL.combatAutomation = state.AlexL.combatAutomation || {};
var WillTurnOrder ={};
(function(self) {
var TurnData = {};
var BestRoll = 0;
self.addPlayer = function(id, Roll, Attack) {
var inc = Roll/Attack;
var init = Roll;
if(Roll > BestRoll) {
BestRoll = Roll;
//Status Icon Options
var DEAD_STATUS = "dead";
//HP bars
var HEALTH_BAR = "bar1";
var AMMO_BAR = "bar2";
var ARMOUR_BAR = "bar3";
//Display Table Sizes
var COLWIDTH = 77;
@pigalot
pigalot / 4eDamage.js
Last active January 3, 2016 06:09
Another 4e damage automation script for roll20.
/*
Current Options
-a or --attack [dice roll]: The attack dice roll
-A or --action [STRING]: No Action | Free Action | Immediate Interrupt | Immediate Reaction | Minor Action | Move Action | Standard Action //From PowerCards --action
-b or --cureTemp [dice roll]: The temp heal dice roll
-c or --cure [dice roll]: The heal dice roll
-C or --toCrit [value]: Crit Range
-d or --damage [dice roll]: The damage dice roll
var pigalot = pigalot || {};
pigalot.requests = pigalot.requests || {};
pigalot.requests.phrases = pigalot.requests.phrases || {};
pigalot.requests.phrases._tables = {};
pigalot.requests.phrases._load = function() {
if("pigalot.requests.phrases" in state) {
// Get the JSON string from state.
var ZombieDice = {};
ZombieDice.Pool = ["Green","Green","Green","Green","Green","Green","Yellow","Yellow","Yellow","Yellow","Red","Red","Red"];
ZombieDice.Red = {};
ZombieDice.Red.Dice = ["Brain","Run","Run","Hit","Hit","Hit"];
ZombieDice.Red.Brain = '<img src="http://img59.imageshack.us/img59/9163/ixv.png" style="background-color: red" />';
ZombieDice.Red.Hit = '<img src="http://img839.imageshack.us/img839/4586/q8xb.png" style="background-color: red" />';
ZombieDice.Red.Run = '<img src="http://img6.imageshack.us/img6/1662/87e.png" style="background-color: red" />';
ZombieDice.Yellow = {};
ZombieDice.Yellow.Dice = ["Brain","Brain","Run","Run","Hit","Hit"];
ZombieDice.Yellow.Brain = '<img src="http://img59.imageshack.us/img59/9163/ixv.png" style="background-color: yellow" />';