A Pen by Dave Cross on CodePen.
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
const { JSDOM } = require("jsdom"); | |
const responsiveImage = require("./src/js/responsive-image"); | |
// Set the project root for use with Sharp. | |
global.__rootdir = __dirname; | |
module.exports = function(eleventyConfig) { | |
eleventyConfig.addPassthroughCopy("img"); | |
eleventyConfig.addTransform("transform-sharp", async function( |
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
''' | |
Sample colours from selected image and overlay selected colours along bottom edge of image. | |
For use in Pythonista | |
UI selector borrowed directly from Ole Zorn @olemoritz: https://gist.github.com/omz/ae96874dfbda54ed2771 | |
''' | |
import photos | |
import Image | |
import random |
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
#! /usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
import re | |
# imput string sample data | |
targ = ''' - Task 09 | |
This is a comment | |
- Subtask 9.01 @done | |
This is a subtask comment |