- Status: [proposed | rejected | accepted | deprecated | … | superseded by ADR-0005]
- Deciders: [list everyone involved in the decision]
- Date: [YYYY-MM-DD when the decision was last updated]
Technical Story: [description | ticket/issue URL]
javascript:(function()%7Bvar%20css%20%3D%20%60%2F*!*%20Revenge%20CSS%20v%201.0*%20Copyright%202013%2C%20Heydon%20Pickering%3A%20http%3A%2F%2Fwww.heydonworks.com*%20Released%20under%20Attribution%203.0%20Unported%20license%20-%20http%3A%2F%2Fcreativecommons.org%2Flicenses%2Fby%2F3.0%2F*%20Please%20leave%20this%20comment%20block%20intact%20as%20attribution*%2Fa%3Anot(%5Bhref%5D)%2C%20a%5Bhref%3D%22%22%5D%2C%20a%5Bhref%24%3D%22%23%22%5D%2C%20a%5Bhref%5E%3D%22javascript%22%5D%2C.button%3Anot(button)%3Anot(%5Brole%3D%22button%22%5D)%3Anot(%5Btype%3D%22button%22%5D)%3Anot(%5Btype%3D%22submit%22%5D)%3Anot(%5Btype%3D%22reset%22%5D)%2C.btn%3Anot(button)%3Anot(%5Brole%3D%22button%22%5D)%3Anot(%5Btype%3D%22button%22%5D)%3Anot(%5Btype%3D%22submit%22%5D)%3Anot(%5Btype%3D%22reset%22%5D)%2Ca%5Bclass*%3D%22button%22%5D%3Anot(%5Brole%3D%22button%22%5D)%2Ca%5Brole%3D%22button%22%5D%3Anot(%5Bhref*%3D%22%2F%22%5D)%3Anot(%5Bhref*%3D%22.%22%5D)%3Anot(%5Bhref*%3D%22%3F%22%5D)%2Ca%5Brole%3D%22button%22%5D%5Bhref%3D%22%22%5D%2C%20a%5 |
require "terser" | |
require "digest" | |
module Jekyll | |
# Override class for jekyll's static files | |
# this allows the creation of files without a source file | |
class GeneratedStaticFile < Jekyll::StaticFile | |
attr_accessor :file_contents | |
def initialize(site, dir, name) |
require "digest" | |
module Jekyll | |
# Override class for jekyll's static files | |
# this allows the creation of files without a source file | |
class GeneratedStaticFile < Jekyll::StaticFile | |
attr_accessor :file_contents | |
def initialize(site, dir, name) | |
@site = site |
require('crypto').randomBytes(128).toString('hex') |
Technical Story: [description | ticket/issue URL]
I hereby claim:
To claim this, I am signing this object:
// Transform JSON array of stats into object | |
// concat values into single strings for each key | |
// ---------------------------------------------- | |
function transform(json) { | |
// iterate over each item in the JSON array | |
// replace null values with empty strings | |
// concat new value onto old value | |
return json.results.reduce(function(acc, data) { | |
return acc.then(prev => { | |
return { |
// Zapier injects their own callback, this is just for testing | |
// ----------------------------------------------------------- | |
function callback(err, results) { | |
if (err) throw new Error(err); | |
console.log(results); | |
return results; | |
} | |
// Transform JSON array of stats into object | |
// concat values into single strings for each key |
<!doctype html> | |
<html> | |
<head> | |
</head> | |
<body> | |
<img id="my-image" src="colour.png" /> | |
<script> | |
var colorImage = function(image, x, y, x2, y2) { |