This file contains hidden or 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
# Place this into your .bash_aliases and ensure you source the file | |
# To use, run `gitlog` to get the commits for the past 12 hours | |
# To get a different time range, run `gitlog 36` for the previous 36 hours | |
function gitlog() { | |
if [ -z "$1" ] | |
then | |
HOURS=12 | |
else | |
HOURS=$1 |
This file contains hidden or 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
module Jekyll | |
### | |
# # Index Generator | |
# | |
# Jekyll Plugin to build indexes from Posts | |
# | |
# ## Installation and Configuration | |
# | |
# To use in a Jekyll application, copy this file into _plugins |
This file contains hidden or 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($, undefined) { | |
$.widget("grok.savemenot", { | |
_create: function() { | |
this.inputs = this.element.find('input, textarea, select, button'); | |
this.submit = $('[type="submit"]'); |
This file contains hidden or 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
#!/usr/bin/ruby | |
# https://www.ruby-forum.com/topic/122170#544763 | |
git_files = `git diff --cached --name-only`.lines.map(&:chomp) | |
offending_lines = {} | |
def File.binary? name | |
open name do |f| |
This file contains hidden or 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 | |
class gzipper | |
{ | |
public function gzipFile($file,$destination_directory = '') | |
{ | |
try | |
{ |
This file contains hidden or 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
counter = 0; | |
window.onkeydown = function(e){konamicode(e.which)} | |
function konamicode(button) | |
{ | |
var code = new Array(38,38,40,40,37,39,37,39,66,65); | |
if(code[counter] === button) | |
{ |
NewerOlder