Skip to content

Instantly share code, notes, and snippets.

.bubble {
width: 18px;
height: 18px;
line-height: 19px;
border: 1px solid white;
-webkit-box-shadow: 0px 1px 2px 0px #333;
/*-webkit-box-shadow: 0px 1px 1px 0px #333 */
-webkit-border-radius: 10px;
background-image: -webkit-gradient(linear, left top, left bottom, from(#f3888b), to(#c90e17));
color: white;
@renier
renier / comments-added.py
Created March 24, 2012 13:23
Gerrit hook for auto-submission when enough reviews and verifications are detected.
#!/usr/bin/python
import json, sys
from subprocess import Popen, PIPE
change = sys.argv[2]
for x in range(len(sys.argv)):
if sys.argv[x] == "--change":
change = sys.argv[x+1]
break
@renier
renier / git.conf
Created March 7, 2012 17:14
Apache configuration snippet for enabling Git's smart http support (git-http-backend)
SetEnv GIT_PROJECT_ROOT /var/www/git
SetEnv GIT_HTTP_EXPORT_ALL
# This next is needed to enable authenticated push
SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER
ScriptAlias /git/ /usr/libexec/git-core/git-http-backend/
# Above, trailing slash needed to enable pull
<LocationMatch "^/git/.*/git-receive-pack$">
Options +ExecCGI # Needed to enable push
AuthName "Protected"
@renier
renier / replTabsWithSpaces.js
Created March 7, 2012 03:03
Komodo macro that replaces tabs with spaces
var scimoz = ko.views.manager.currentView.scimoz,
savedPos = scimoz.currentPos,
savedLinePos = scimoz.firstVisibleLine;
try {
scimoz.text = scimoz.text.replace(/\t/gm, " ");
scimoz.gotoPos(savedPos);
scimoz.lineScroll(0, savedLinePos-scimoz.firstVisibleLine);
} catch(e) {
return true;
var input = "/*global put:true,globals:true,here:true*/" + lines.join("\n");
@renier
renier / jslint.options
Created March 5, 2012 22:49
JSLint predef option example
predef="require,define"