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
/** | |
* Adds a Like button to tasks, so users can like them. | |
* | |
* By default there are no votes enabled in the project. To enable: | |
* | |
* project.metadata('apps').set({ votes: true }); | |
* project.metadata('apps').save(); | |
* | |
*/ |
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
$(document).on("click", ".comment a", function(e) { | |
if ($(this).text().indexOf("@") !== -1) { | |
e.preventDefault(); | |
var email = $(this).text(); | |
(new Teambox.Views.Dialog({ | |
header: "User " + email + ". <a href='/become/" + email + "'>Become</a>" | |
, content: "<iframe src='/reports/users/" + email + "' style='width: 100%; height: 800px;'></iframe>" | |
})).open(); | |
} | |
}); |
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
// Add a button to Collapse or Expand files in a Github PR | |
// | |
// See it in action: http://cl.ly/image/1r3q3d0d3b0p | |
// | |
// Install Tampermonkey and add this as a script | |
// ==UserScript== | |
// @name Github PRs: Collapse/expand file | |
// @namespace https://gist.github.com/micho/855b272d2f408f04729e | |
// @version 0.1 |
OlderNewer