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
static public function getByLicenceNumber($aLicenceNumber, $aHydration = Doctrine::HYDRATE_ARRAY) { | |
$q = Doctrine_Query::create() | |
->select('c.*, o.*') | |
->from('Client c') | |
->leftJoin('c.Orders o') | |
->where('c.licencenumber = ?', (string) $aLicenceNumber); | |
return $q->fetchOne(); | |
} | |
static public function add_order($aLicenceNumber, $aOrderXML) { |
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
[Wed Jun 09 18:04:16 2010] [warn] [client 192.168.***.***] [10661] auth_ldap authenticate: user **** authentication failed; URI /svn [LDAP: ldap_simple_bind_s() failed][Can't contact LDAP server] |
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
<%= link_to "invoice", :controller => "shop", :action => "invoice", :id => @invoice.id, :format => :pdf %> | |
Results in: /shop/invoice/#id?format=pdf, I want: /shop/invoice.pdf/#id or /shop/invoice.pdf?id=#id |
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
user_sessions GET /user_sessions(.:format) {:controller=>"user_sessions", :action=>"index"} | |
POST /user_sessions(.:format) {:controller=>"user_sessions", :action=>"create"} | |
new_user_session GET /user_sessions/new(.:format) {:controller=>"user_sessions", :action=>"new"} | |
edit_user_session GET /user_sessions/:id/edit(.:format) {:controller=>"user_sessions", :action=>"edit"} | |
user_session GET /user_sessions/:id(.:format) {:controller=>"user_sessions", :action=>"show"} | |
PUT /user_sessions/:id(.:format) {:controller=>"user_sessions", :action=>"update"} | |
DELETE /user_sessions/:id(.:format) {:controller=>"user_sessions", :action=>"destroy"} | |
payment_methods GET /payment_methods(.:format) {:controller=>"payment_methods", :action=>"index"} | |
POST /payment_methods(.:format) {:controller=>"payment_methods", :action=>"create"} | |
new_paymen |
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
<%= link_to "invoice", formatted_invoice_shop_path( :pdf , :id => @invoice.id) | |
=>http://localhost:3000/shop/invoice?id=2179314940 | |
and | |
<%= link_to "invoice", formatted_invoice_shop_path( :pdf ) , :id => @invoice.id | |
=>http://localhost:3000/shop/invoice.pdf |
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
Transaction.find(1).id | |
=>1 | |
YAML::dump(Transaction.find(1).detail) | |
=>--- !ruby/object:Transaction::Detail attributes: subscription_plan_name: foobar payment_method: visa feature_level: foobar recurring: true prefix_options: {} | |
Transaction.find(1).detail.payment_method | |
=> undefined method `payment_method' for #<Transaction::Detail:0x103e28a70> | |
Transaction.find(1).detail.attributes.payment_method |
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
\define@key{binksetup}{title} [A BINK software Document]{\def\documenttitle{#1}} | |
\define@key{binksetup}{author}[BINK software B.V.] {\def\documentauthor{#1}} | |
\define@key{binksetup}{date} [\today] {\def\documentdate{#1}} | |
\define@key{binksetup}{name} {\def\documentname{#1}} | |
\newcommand{\binksetup}[1]{% | |
\setkeys{binksetup}{#1} | |
\title{\documenttitle} |
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
Loading package txt-sushi-0.5.1 ... linking ... <interactive>: | |
unknown symbol `___stginit_txtzmsushizm0zi5zi1_Pathszutxtzusushi_' | |
ghc: unable to load package `txt-sushi-0.5.1' |
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 Main where | |
import Criterion | |
import Control.Concurrent.CHP.Monad | |
import Data.IORef | |
import qualified Data.Map as M | |
import Progression.Main | |
import Random |
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
{-# LANGUAGE GADTs, ExistentialQuantification, ImpredicativeTypes #-} | |
module Gadtalgebra where | |
import Data.Char | |
data Term a where | |
Const :: a -> Term a | |
Plus :: Term Int -> Term Int -> Term Int | |
Pair :: Term b -> Term c -> Term (b,c) |