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
git grep -ino "// TODO" | cut -d":" -f1-2 | sed 's/:/ /g' | sed 's/\(.*\) \(.*\)/\2,\2 \1/g' | xargs -r -L 1 git blame -c -L > todo-lol.txt |
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 Github Enterprise Keyboard Shortcuts for Pull Requests | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author Attila Kerekes | |
// @match https://github.url/* | |
// @grant none | |
// ==/UserScript== |
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 HackerNews Keyboard Shortcuts | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Adds j,k,o,c keybindings to navigate hackernews. | |
// @author Attila Kerekes | |
// @match https://news.ycombinator.com/news | |
// @grant none | |
// ==/UserScript== |
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
gpr() { | |
NEWLINE=$'\n'; | |
lastCommitMessage=$(git log -1 --pretty=%B); | |
ticketNumber=$(echo $lastCommitMessage | cut -d ":" -f2 | cut -d " " -f2); | |
message=$(<./.github/PULL_REQUEST_TEMPLATE.md); | |
messageReplaced=$(sed -e "s/GEOR-xxx/$ticketNumber/g" <<< $message); | |
hub pull-request -m "$lastCommitMessage$NEWLINE$messageReplaced" -o; | |
} |
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 () { | |
// support for uploadProgress callback | |
var originalXHR = $.ajaxSettings.xhr; | |
$.ajaxSetup({ | |
xhr: function () { | |
var myXHR = originalXHR(); | |
if (myXHR.hasOwnProperty('upload') && this.hasOwnProperty('uploadProgress')) { |
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
var AwesomeObject = function() { | |
this.init() | |
}; | |
AwesomeObject.prototype = { | |
init: function() { | |
_.bindAll(this, 'onSuccess', 'onError', 'onComplete') | |
// or | |
this.onSuccess = $.proxy(this.onSuccess, this) |
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
var AwesomeObject = function() {}; | |
AwesomeObject.prototype = { | |
doSomeThingAsync: function() { | |
var that = this; | |
// Do that with bind? | |
return asyncThing({ | |
success: function() { that.onSuccess.apply(that, arguments);}, |
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
{ | |
"vars": { | |
"@gray-darker": "#000", | |
"@gray-dark": "#1a171b", | |
"@gray": "lighten(@gray-dark, 33.5%)", | |
"@gray-light": "lighten(@gray-dark, 60%)", | |
"@gray-lighter": "lighten(@gray-dark, 93.5%)", | |
"@brand-primary": "#df0b25", | |
"@brand-success": "#5cb85c", | |
"@brand-info": "#5bc0de", |
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
javascript: (function() {var vid = document.getElementById('player'); vid.className = vid.className + " watch-large";})() |
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> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
if (typeof Object.create === 'undefined') { |
NewerOlder