Skip to content

Instantly share code, notes, and snippets.

View logandk's full-sized avatar

Logan Raarup logandk

View GitHub Profile
#!/usr/bin/ruby
#
# GitHub raw file download
# -------------------------------
# Provides a "get_blob" method for downloading the raw contents of a
# file in a GitHub repository. Useful in cases where only the Ruby core
# is available (i.e. for setting up new EC2 instances automatically)
#
# Usage:
# data = get_blob("user", "repository", "/path/to/file")
# config/initializers/authlogic.rb
Authlogic::I18n.translator = FixedAuthlogicI18n::Translator.new
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.dropbox.preferences</string>
<key>OnDemand</key>
<true/>
<key>ProgramArguments</key>
<array>
jQuery.fn.tooltip = function(options) {
var element = $(this);
settings = jQuery.extend({
message: element.attr("alt"),
hover: true,
insertion: 'body'
}, options);
@logandk
logandk / userscript.js
Last active August 29, 2015 14:05
Better Trello Print
// ==UserScript==
// @name Better Trello Print
// @namespace https://trello.com/
// @include https://trello.com/
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==
var styles = "@media print{*{text-shadow:none!important}#surface{height:auto!important}body{overflow:visible!important}.attachment-thumbnail,.phenom,img{page-break-before:auto;page-break-after:auto;page-break-inside:auto;position:relative}#header{display:none}#notification{display:none!important}#board{height:auto!important;margin-left:0!important;overflow:visible!important;display:-webkit-flex!important}.list{float:none;margin-bottom:16px;max-height:none!important;width:260px!important}.list-cards{max-height:none!important;-moz-box-flex:0;-webkit-box-flex:0;-ms-flex:0 0 auto;-webkit-flex:0 0 auto;flex:0 0 auto}.extra-large-window .list,.large-window .list{-webkit-box-shadow:none;box-shadow:none;float:none}.list-header .icon-sm{visibility:hidden}.list-header .list-title{margin-left:12px}.ope