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
@mixin ltr { | |
html[dir='ltr'] &, | |
html:not([dir]) & { | |
@content; | |
} | |
} | |
@mixin rtl { | |
html[dir='rtl'] & { | |
@content; |
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 bash | |
# install node dependencies | |
# --production flag is *not* required since we use bundler | |
NODE_ENV=production npm install | |
# install optimized backend dependencies | |
composer install --no-dev --optimize-autoloader | |
# ensure clean dist directory |
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
# Very important assumption: you have commit messages with _unique_ subject lines ('%s') | |
# If not, you need to either modify my gist or "go back to the drawing" board… | |
# Use these to check if you have unique subject lines or not: | |
# (the numbers must be identical) | |
export BRANCH=master | |
export OLD_BRANCH=old_branch | |
git log --format="%s" "$BRANCH" | uniq | wc -l | xargs | |
git log --oneline "$BRANCH" | wc -l | xargs |
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
// I have used this script with Tampermonkey to automatically inject it | |
const $ = window.$; | |
window.task = ''; | |
const bind = () => { | |
$('.checklist-item-details-text').each( (i, el) => { | |
if ( el.classList.contains('mouseenter-event') ) { return }; | |
$(el).mouseenter( e => { window.task = e.currentTarget.innerText } ); |
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 tasks = () => { | |
let tasks = ``; | |
// eslint-disable-next-line | |
$.each( $('.checklist-item-state-complete'), (i, val) => { // jQuery is already loaded by Trello | |
const task = $(val).find('.js-checkitem-name').text(); // eslint-disable-line | |
tasks = `${tasks}\n${task}`; | |
}); | |
tasks = `${tasks}\n`; | |
return tasks; | |
}; |