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
module Paperclip | |
class PdfToSwf < Processor | |
attr_accessor :params | |
def initialize file, options = {}, attachment = nil | |
super | |
@file = file | |
@params = options[:params] | |
@current_format = File.extname(@file.path) |
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 | |
class SoapClientDebug extends SoapClient | |
{ | |
public function __doRequest($request, $location="", $action="", $version=0, $one_way=0) { | |
echo "<pre>" . preg_replace('/></', '><br><', htmlentities($request)) . "</pre>"; | |
return parent::__doRequest($request, $location, $action, $version); | |
} | |
} |
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 | |
/** | |
* | |
* Eogs (V .4) class is a collection of methods used to communicate with cvr.dk SOAP | |
* service. | |
* | |
* Details on @link http://archprod.service.eogs.dk/cvronline/metacvronline/urls.htm | |
* | |
* @note .4 contains only adapters for two interfaces. |
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
# minimal rails3 app | |
require 'action_controller' | |
Router = ActionDispatch::Routing::RouteSet.new | |
Router.draw do | |
root :to => 'site#index' | |
end | |
class SiteController < ActionController::Metal |
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
jQuery.fn.thatHasNo = (element, method = "children") -> | |
@.not -> | |
$(@)[method](element).length |
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
\documentclass[a4paper]{article} | |
\usepackage[newdimens]{labels} | |
\usepackage[utf8]{inputenc} | |
\LabelCols=4 | |
\LabelRows=10 | |
\LabelGridtrue | |
\numberoflabels=40 | |
\LabelInfotrue |
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
<!-- ~/Library/Application Support/Sublime Text 3/Packages/User/Ruby/pry.sublime-snippet --> | |
<snippet> | |
<content><![CDATA[require 'pry'; binding.pry]]></content> | |
<tabTrigger>pry</tabTrigger> | |
<scope>source.ruby</scope> | |
<description>binding.pry</description> | |
</snippet> |
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
\documentclass[letterpaper]{article} | |
\usepackage{color,hyperref,geometry,subfigure,fancyhdr,sectsty,pstricks} | |
\usepackage[utf8x]{inputenc} | |
\usepackage[T1]{fontenc} | |
\usepackage[sc,osf]{mathpazo} | |
\usepackage{adforn} | |
\usepackage{soul} | |
\geometry{ body={6.5in, 8.5in}, left=1.0in, top=1.20in } |
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
{ | |
"tokens": [ | |
{ | |
"token": " adaquaten", | |
"start_offset": 6, | |
"end_offset": 15, | |
"type": "shingle", | |
"position": 0 | |
}, | |
{ |
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
<snippet> | |
<content><![CDATA[it { is_expected.to($0) }]]></content> | |
<tabTrigger>itex</tabTrigger> | |
<scope>source.ruby</scope> | |
<description>it { is_expected.to(...) }</description> | |
</snippet> |