Original source:
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
require 'delayed_job' | |
require 'net/http' | |
class ImagesController < ApplicationController | |
def fetch | |
components = params[:url].split('/') | |
url = clean_url(components[0]) | |
filename = components[1] + params[:format] |
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
{Job failed to load: undefined class/module WebImageJob. Handler: "--- !ruby/struct:WebImageJob\nurl: !ruby/object:URI::HTTP\n scheme: http\n user: \n password: \n host: www.amazon.com\n port: 80\n path: /\n query: \n opaque: \n registry: \n fragment: \n parser: \noriginal_url: \ntarget_url: \n" | |
/Users/j/.rvm/gems/ruby-1.9.3-p194@onepassword-imageserver/gems/delayed_job-3.0.3/lib/delayed/backend/base.rb:86:in `rescue in payload_object' | |
/Users/j/.rvm/gems/ruby-1.9.3-p194@onepassword-imageserver/gems/delayed_job-3.0.3/lib/delayed/backend/base.rb:84:in `payload_object' | |
/Users/j/.rvm/gems/ruby-1.9.3-p194@onepassword-imageserver/gems/delayed_job-3.0.3/lib/delayed/backend/base.rb:94:in `block in invoke_job' | |
/Users/j/.rvm/gems/ruby-1.9.3-p194@onepassword-imageserver/gems/delayed_job-3.0.3/lib/delayed/lifecycle.rb:60:in `call' | |
/Users/j/.rvm/gems/ruby-1.9.3-p194@onepassword-imageserver/gems/delayed_job-3.0.3/lib/delayed/lifecycle.rb:60:in `block in initialize' | |
/Users/j/.rvm/gems/ruby-1.9.3-p194@onepassword- |
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
git log --name-only --format="%h" origin/master..HEAD | sort -u | grep -v -E -e '^[a-f0-9]+$' |
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
:+1: | |
:-1: | |
:airplane: | |
:art: | |
:bear: | |
:beer: | |
:bike: | |
:bomb: | |
:book: | |
:bulb: |
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 | |
/*---------------------------------------------------------------------------------*/ | |
/* Knowledgebase category list */ | |
/*---------------------------------------------------------------------------------*/ | |
class Woo_Supportpress_kb_cats extends WP_Widget { | |
function Woo_Supportpress_kb_cats() { | |
$widget_ops = array('description' => 'Lists knowledgebase categories.' ); | |
parent::WP_Widget(false, __('SupportPress - Knowledgebase Categories', 'woothemes'), $widget_ops); | |
} |
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
class ArticlesController < ApplicationController | |
def index | |
@articles = Article.joins(:product_platform_references => {:product_platform => [:product, :platform]}, :article_categories => :category) | |
end | |
end |
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
echo "" > ~/Dropbox/Elements/`date +%Y%m%d_%H%M%S`.md && open -b com.macromates.textmate `ls -t ~/Dropbox/Elements | head -n1` |
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
"Color:Background" = "rgb(11051,11051,11051)"; | |
"Color:Background:Grep Replace Pattern" = "rgb(62915,62915,62915)"; | |
"Color:Background:Grep Search Pattern" = "rgb(62915,62915,62915)"; | |
"Color:CTagsIdentifier" = "rgb(48776,20456,15006)"; | |
"Color:ColorAttributesSeparately" = 1; | |
"Color:Comment" = "rgb(26214,26214,26214)"; | |
"Color:Comment:Markdown" = "rgb(43036,43036,43036)"; | |
"Color:Foreground" = "rgb(59110,57825,56540)"; | |
"Color:Foreground:Grep Replace Pattern" = "rgb(0,0,0)"; | |
"Color:Foreground:Grep Search Pattern" = "rgb(0,0,0)"; |
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
-- See article here: http://daringfireball.net/2007/07/simple_inbox_sweeper | |
-- The following should be one long line: | |
set _description to "All unflagged, read messages in each IMAP account | |
inbox will be moved to the “Archive” mailbox corresponding to that | |
account. This action is not undoable." | |
tell application "Mail" | |
display alert "Archive read messages from IMAP inboxes?" buttons ¬ | |
{"Cancel", "Archive"} cancel button 1 message _description |