Attaches event listeners to the addthis object and pushes them to GTM's dataLayer.
Necessary because AddThis' built-in GA "integration" doesn't work with Universal Analytics, or GTM. 😒
See also:
Attaches event listeners to the addthis object and pushes them to GTM's dataLayer.
Necessary because AddThis' built-in GA "integration" doesn't work with Universal Analytics, or GTM. 😒
See also:
Ignore the .twig
extensions, that's just for the code highlighting. These files are just html + BC-flavoured Liquid Markup.
This code is currently built to switch themes based on time. Only minor changes would allow changing themes by other factors, such as which domain the page is being served from.
This snippet must go at the top of each Page Template. Although it must be repeated in each, it should be far less likely to change
than the information in theme-data.json
.
In this gist:
activities → companies (rendered)
object budgets → projects (rendered)
tip: viz.js is a handy interactive editor...
another tip: those 'rendered' links above use this code: https://github.com/grahamc/graphvizrender
/* Tweak Trello for better card title visibility when chromecast'd to TVs. */ | |
/* https://gist.github.com/r-k-b/5b65b6172ccea201db3183da9b712419 */ | |
#board { | |
margin-bottom: 0; | |
padding-bottom: 0; | |
} | |
#header { |
{-| | |
Based on [robertjlooby's answer](http://stackoverflow.com/a/38022835/2014893), updated for Elm 0.18. | |
-} | |
import Html exposing (div, button, text, program) | |
import Html.Events exposing (onClick) | |
import Task | |
import Time exposing (Time) | |
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
based on https://en.wikipedia.org/wiki/ISO_week_date#Calculating_the_week_number_of_a_given_date
M / Power Query doesn't have a native ISO8601 Week Number function, and DAX's
weeknum(x, 21)
doesn't give the correct ISO Week-Year.
/*
based on <https://en.wikipedia.org/wiki/ISO_week_date#Calculating_the_week_number_of_a_given_date>
// ==UserScript== | |
// @name Ligatures for Sanctuary.js Docs | |
// @namespace https://gist.github.com/r-k-b/ | |
// @version 0.1 | |
// @description Allow Ligatures in more places in Sanctuary.js's docs. Intended for use alongside a custom CSS theme that applies a font like Fira Code. | |
// @author Robert K. Bell | |
// @homepage https://gist.github.com/r-k-b/dd02d4e641826a721dec112d40b90630 | |
// @downloadURL https://gist.github.com/r-k-b/dd02d4e641826a721dec112d40b90630/raw/ligatures-for-sanctuary.user.js | |
// @match https://sanctuary.js.org/* | |
// @grant none |
// ==UserScript== | |
// @name No Alerts When Changing Page Templates | |
// @namespace https://gist.github.com/r-k-b | |
// @version 1.1.0 | |
// @description No Alerts When Changing Page Templates | |
// @author Robert K. Bell <robert.k.bell@gmail.com> | |
// @homepage https://gist.github.com/r-k-b/9675b4e353f59e968d1986bc6f7ac2a0 | |
// @downloadURL https://gist.github.com/r-k-b/9675b4e353f59e968d1986bc6f7ac2a0/raw/no-alerts-when-changing-bc-page-templates.user.js | |
// @match https://*.worldsecuresystems.com/Admin/WebPages_Detail.aspx?PageID=* | |
// @grant none |