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
// ==UserScript== | |
// @name Bitbucket PR File Collapse | |
// @version 0.1 | |
// @description Add a button to each file in bitbucket PRs to collapse and expand the file | |
// @author Tyler Davis <tyler@tmd.io> | |
// @match https://bitbucket.org/atlassian/*/pull-requests/* | |
// @grant none | |
// ==/UserScript== | |
(window.addEventListener('load', 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
### Keybase proof | |
I hereby claim: | |
* I am tylerdavis on github. | |
* I am tmd (https://keybase.io/tmd) on keybase. | |
* I have a public key whose fingerprint is 0FEA E91F B193 6BD5 9F76 F71F 9FB2 3D96 0B3E DE20 | |
To claim this, I am signing this object: |
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 loadScript(src, callback) | |
{ | |
var s, | |
r, | |
t; | |
r = false; | |
s = document.createElement('script'); | |
s.type = 'text/javascript'; | |
s.src = src; | |
s.onload = s.onreadystatechange = 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
/** | |
* Take a hex string, an rgb/a string, color name or an object. | |
* validate it and normalize to an rgba object | |
* @param {string|object} colorStringOrObject | |
* @returns {Color} | |
*/ | |
function Color(colorStringOrObject) { | |
if (colorStringOrObject instanceof Color) { | |
return colorStringOrObject; | |
} |
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
class ServiceBase | |
attr_reader :model, :errors | |
class AbstractMethodError < Exception | |
end | |
def initialize(model) | |
@model = model | |
@errors = [] |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<head> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/d3/3.4.11/d3.js"></script> | |
</head> | |
<body> | |
<script> | |
var color = 'forestgreen'; | |
var dimensions = { x : 800, y : 800 }; | |
var lineData = [0, -60, 150, -400, 750, -650, 350, -145, 40, 0]; |
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 convenience class for abstracting event mapping. | |
* This can be injected in to any standard javascript class that couples with UI, | |
* similar to how backbone event mapping works, but, well.. better. | |
* @param el The scope of the selectors used in the event map. | |
* @param options | |
* @param options.events {{String} : { events : {Array}, handler : {String | Array}}} | |
* | |
* { | |
* 'selector' : { |
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
{ | |
"bitwise" : true, | |
"eqeqeq" : true, | |
"forin" : true, | |
"freeze" : true, | |
"newcap" : true, | |
"noarg" : true, | |
"noempty" : true, | |
"nonew" : true, | |
"undef" : 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
[unix_http_server] | |
file=/tmp/supervisor.sock ; path to your socket file | |
[supervisord] | |
logfile=/var/log/supervisord/supervisord.log ; supervisord log file | |
logfile_maxbytes=50MB ; maximum size of logfile before rotation | |
logfile_backups=10 ; number of backed up logfiles | |
loglevel=error ; info, debug, warn, trace | |
pidfile=/var/run/supervisord.pid ; pidfile location | |
nodaemon=false ; run supervisord as a daemon |
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
worker_processes 2; | |
error_log /var/log/nginx/error.log; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
use epoll; | |
} |
NewerOlder