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
// All non-merge commits | |
reg = /^(.+?)(\n|$)/; ' * ' + Array.prototype.slice.call(document.querySelectorAll('.commit-message a')).map(el => el.title).filter(title => title && title.indexOf('Merge') !== 0).map(title => { var mm = title.match(reg); return mm && mm[1]; }).join("\n * "); | |
// Only merge commits | |
reg = /^[^#]+(#[0-9]+)[^\n]+\n\n((?:.|\n)+)$/; Array.prototype.slice.call(document.querySelectorAll('.commit-message a')).map(el => el.title).filter(title => title.indexOf('Merge') === 0).map(title => { var mm = title.match(reg); return mm && mm[2] + ' (' + mm[1] + ')'; }).join("\n * "); |
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
copy($$('.message').map(i => { if (i.text.indexOf('Merge pull request') > -1 || i.text.indexOf('from') === 0) { return ''; } return i.text }).filter(Boolean).join('\n- ')) |
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
// ---- | |
// libsass (v3.3.2) | |
// ---- | |
@mixin ohgodwhy { | |
%red { | |
color: red; | |
border-bottom: 2px solid red; | |
} |
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
(function($) { | |
const ReviewHearts = { | |
requiredProps: ['$container', '$inputs'], | |
config: {}, | |
init(config = {}) { | |
this.requiredProps.map(prop => { | |
if (!config[prop]) { | |
throw new Error(`Missing required prop ${prop}`); |
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
function LOE(tasks) { | |
return tasks.map(task => effortUnits(task)).reduce((a, b) => a + b); | |
} | |
function effortUnits() { | |
return [6, 8, 40][Math.floor(Math.random() * 3)]; | |
} |
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
<a href="#">I a link for some reason I a link for some reason I a link for some reason I a link for some reason I a link for some reason I a link for some reason</a> |
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
// ---- | |
// Sass (v3.4.14) | |
// Compass (v1.0.3) | |
// ---- | |
@mixin redStuff { | |
color: red; | |
background-color: darkred; | |
} |
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
<section> | |
<a href="#">I am a link I am a link I am a link I am a link I am a link I am a link I am a link</a> | |
</section> |
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
.dgd_stb_box { | |
max-width: 100% | |
} | |
@media (max-width: 768px) { | |
.dgd_stb_box img { | |
display: block; | |
margin: 0 auto; | |
} | |
} |
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
tell application "OmniFocus" | |
tell front document | |
tell document window 1 | |
set theSelectedItems to selected trees of content | |
if ((count of theSelectedItems) < 1) then | |
display alert "You must first select a single task." message "Select a single task before running this script." as warning | |
return | |
end if | |
if ((count of theSelectedItems) > 1) then | |
display alert "This script handles only one task at a single blow!" message "Select a single task before running this script." as warning |
NewerOlder