- Basic: Basic Rules
- PHB: Player's Handbook (paper only)
- LMP: Lost Mines of Phandelver
- HotDQ: Horde of the Dragon Queen
- OotA: Out of the Abyss
Ranger Pets
YUI.add('date-ago', function (Y) { | |
function round(value) { | |
return Math.round(value); | |
} | |
function distanceOfTimeInWords(from_time, to_time, include_s) { | |
var include_seconds, distance_in_minutes, distance_in_seconds; | |
include_seconds = include_s || false; | |
distance_in_minutes = round(Math.abs(to_time - from_time) / 60000); |
/*global YUI*/ | |
/** | |
* Converts an integer into a its proper ordinal ("1st", "2nd", "3rd", "4th") | |
* @module number-to-ord | |
*/ | |
YUI.add("number-to-ord", function (Y) { | |
"use strict"; | |
/** | |
* Converts an integer into a its proper ordinal ("1st", "2nd", "3rd", "4th") | |
* |
// This file represents a simplification of a scope problem I have interacting | |
// with a C SDK. Essentially: | |
// | |
// * I to pass a callback to a C function | |
// * The callback should call a member function of a non-static class instance | |
// | |
// I would like to achieve this without risking memory leaks and crashes, while | |
// also not introducing a huge amount of complexity or rearchitecting the app. | |
#include <iostream> |
@implementation MyAppDelegate | |
/** | |
* Generates a Universally Unique Identifier based on the time and | |
* hardware details of a device. CFUUIDCreate is the recommended | |
* way by Apple to generate an ID now that UIDevice-uniqueIdentifier | |
* is deprecated. | |
* | |
* Props: http://www.cocoabuilder.com/archive/cocoa/217665-how-to-create-guid.html#217668 | |
*/ |
# can add this to ~/.bash_profile | |
node-find() { | |
grep -r --exclude-dir node_modules --include "*.js" "require([\"']$1[\"'/]" . | cut -d ':' -f1 | sort | uniq | |
} |
{ | |
"extends": [ | |
"eslint:recommended" | |
], | |
"rules": { | |
"valid-jsdoc": [ | |
"warn", | |
{ | |
"prefer": { | |
"return": "returns", |
#!/usr/bin/env ruby | |
input = STDIN.read | |
match = /^\s*rgba?\(\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(?:,[\d\.]+)?\s*\)(\s*;?)/.match(input) | |
if !match.nil? # RGB -> Hex | |
res = "#" | |
short_safe = true | |
matches = [match[1], match[2], match[3]].map do |m| | |
h = m.to_i.to_s(16) | |
if h.length == 1 |
Array.from(document.querySelectorAll('object,video,audio,iframe,embed')).forEach(el => el.remove()); |
/*global BackgroundList,BackgroundFeatureList*/ | |
/*jshint sub:true*/ | |
/* See http://web.archive.org/web/20160426193612/http://dndadventurersleague.org/wp-content/uploads/2016/04/Curse-of-Strahd-Backgrounds-v1.1.pdf */ | |
BackgroundList["black fist double agent"] = { | |
regExpSearch : /black\W*fist/i, | |
name : "Black Fist Double Agent", | |
source : ["HB", 1], | |
skills : ["Deception", "Insight"], | |
gold : 15, | |
equipleft : [ |
Ranger Pets