- Open trello card in browser
- Open browser devtools to console tab
- Paste
copy-card-info.js
contents into console - Run script
- Card information written to clipboard
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
var rows = document.querySelectorAll("table div table > tbody tr"); | |
var records = []; | |
for (var i = 0; i < rows.length; i++) { | |
var row = rows[i]; | |
var cells = row.querySelectorAll("td"); | |
cells.forEach((o, j) => { | |
// Put in the forward rows data | |
if (o.rowSpan > 1) { |
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
# This is an esphome configuration file for the OpenEnergyMonitor Thermostat | |
# The primary objectives of this configuration file are: | |
# 1) The temperature used as the sensor for the thermostat should be read from | |
# homeassistant, this lets you use an average or change the room the | |
# temperature is based on depending on the time of day etc. | |
# 2) If homeassisant goes offline the thermostat keeps working. | |
# To this end there is a sensor "average_temperature" which is recieved from hass | |
# and a second sensor "combined_temperature" which decides based on if a device | |
# is connected to the native API or not to use this sensor or the local sensor | |
# attached to the thermostat. |
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
{ "comments": false, "minified": true, "plugins": [ "minify-mangle-names", "transform-merge-sibling-variables", "transform-minify-booleans", "transform-remove-console" ], "presets": [ [ "@babel/preset-env", { "targets": { "ie": "11" } } ] ] } |
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
#!/bin/bash | |
# | |
# Check for debugging statements before commiting your code. | |
# Place this file in the .git/hooks directory of your project. | |
# List of function names to search for in regex format | |
FUNCTIONS='dpm|kpr|qpr|kint|dd|console\.log' | |
# If any functions are found as executable, prevent the commit. | |
DIEONFAIL=true |
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
{% set no_protocol = url|split('//')[1] ?: url %} | |
{% set only_domains = no_protocol|split('/')[0] ?: no_protocol %} | |
{% set url_domain = '' %} | |
{% if only_domains|split('.')[2] %} | |
{% set url_domain = only_domains|split('.')[1] %} | |
{% else %} | |
{% set url_domain = only_domains|split('.')[0] %} | |
{% endif %} |
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
var gulp = require('gulp'); | |
var fs = require('fs'); | |
var del = require('del'); | |
var htmlreplace = require('gulp-html-replace'); | |
var uglify = require('gulp-uglify'); | |
var minifyHTML = require('gulp-minify-html'); | |
var minifyCSS = require('gulp-minify-css'); | |
var rename = require("gulp-rename"); | |
var bowerSrc = require('gulp-bower-src'); | |
var gulpFilter = require('gulp-filter'); |
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
var gulp = require('gulp'), | |
fs = require('fs'), | |
path = require('path'), | |
naturalSort = require('gulp-natural-sort'), | |
browserSync = require('browser-sync'), | |
cp = require('child_process'), | |
rsync = require('gulp-rsync'), | |
rev = require('gulp-rev'), | |
del = require('del'), | |
collect = require('gulp-rev-collector'), |
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
<?php | |
/** | |
* Implements hook_preprocess_HOOK for field--field-structured-content-section.html.twig | |
*/ | |
function TEMPLATE_preprocess_field__field_structured_content_section(&$variables) { | |
$items = $variables['items']; | |
foreach ($items as &$item) { | |
$paragraph = $item['content']['#paragraph']; | |
$para_type = $paragraph->getType(); |
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
<?php | |
/* | |
* Bootstrap override | |
* make dropdown menus do dropdown on hover, | |
* and allow parent link to be clickable | |
*/ | |
// place this in your styles | |
ul.nav li.dropdown:hover > ul.dropdown-menu{ | |
display: block !important; |
NewerOlder