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> | |
<style type="text/css"> | |
.center { | |
text-align: center; | |
} | |
#myInput { |
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($) { | |
$.fn.drags = function(opt) { | |
var $el; | |
opt = $.extend({handle: '', cursor: 'move', windowLock: true}, opt); | |
$el = ('' === opt.handle) ? this : this.find(opt.handle); | |
return $el |
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
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') { |
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
<?php | |
/** | |
* Encodes or Decodes some string | |
* | |
* @param string $string The string to encode or the string to decode | |
* @param string $secretkey The key to encode or decode with | |
*/ | |
function encodeDecode($string, $secretkey) { |
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(){if(!window.jQuery){var s=document.createElement('script'), d = document.body;s.src='//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js';d.appendChild(s);}else{console.log('jQuery found!')}})(); |
NewerOlder