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
error: src refspec master does not match any. | |
error: failed to push some refs to 'ssh://[email protected]/git/netina.git' |
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
pupca@vps:~/pupca$ gem install mysql --no-rdoc --no-ri | |
Building native extensions. This could take a while... | |
ERROR: Error installing mysql: | |
ERROR: Failed to build gem native extension. | |
/home/pupca/.rvm/rubies/ruby-1.8.7-p302/bin/ruby extconf.rb | |
checking for mysql_query() in -lmysqlclient... no | |
checking for main() in -lm... yes | |
checking for mysql_query() in -lmysqlclient... no | |
checking for main() in -lz... no |
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/env ruby | |
#REPO/.git/hooks/commit-msg | |
message_file = ARGV[0] | |
message = File.read(message_file) | |
if /#\d+/.match(message) | |
id = /#(\d+)/.match(message)[1] | |
require 'rubygems' | |
require 'active_resource' |
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/env ruby | |
#REPO/.git/hooks/commit-msg | |
message_file = ARGV[0] | |
message = File.read(message_file) | |
if /#\d+/.match(message) | |
id = /#(\d+)/.match(message)[1] | |
require 'rubygems' | |
require 'active_resource' |
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
Delivered-To: [email protected] | |
Received: by 10.220.194.193 with SMTP id dz1cs104892vcb; | |
Thu, 11 Nov 2010 02:41:59 -0800 (PST) | |
Received: by 10.204.62.203 with SMTP id y11mr1096113bkh.11.1289472117942; | |
Thu, 11 Nov 2010 02:41:57 -0800 (PST) | |
Return-Path: <[email protected]> | |
Received: from mxh.seznam.cz (mxh.seznam.cz [77.75.72.26]) | |
by mx.google.com with ESMTP id r15si4555610bkw.58.2010.11.11.02.41.56; | |
Thu, 11 Nov 2010 02:41:56 -0800 (PST) |
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
Factory.define :accounting_income_transaction do |transaction| | |
transaction.transaction_type "income" | |
transaction.transaction_mod_type "normal" | |
transaction.notice "První příjmová transakce" | |
transaction.amount 50.50 | |
transaction.negative false | |
transaction.active_at Date.new | |
transaction.planned 0 | |
transaction.metedata ""#todo | |
transaction.association :person, :factory => :person |
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
a = {:outcome =>{:accounting_tag_list_raw =>"", :accounting_budget_id =>"105", :notice =>"", :detailed_transaction =>"0", :accounting_partial_transactions_attributes =>{518410005 =>{:accounting_budget_id =>"105", :notice =>"", :amount =>"", :tag =>"", :transaction_type =>"outcome"}}}, :accounting_account_id =>"53", :active_at =>"01.12.2010", :transfer =>{:accounting_account_id =>"53", :other_accounting_account_id =>"53", :accounting_budget_id =>"105", :accounting_tag_list_raw =>"", :notice =>"", :other_accounting_budget_id =>"105"}, :amount =>"100", :transaction_type =>"income", :income =>{:accounting_tag_list_raw =>"trvalé platby, ", :accounting_budget_id =>"107", :notice =>"test", :accounting_partial_transactions_attributes =>{0 =>{:accounting_budget_id =>"107", :amount =>"100,00", :transaction_type =>"income"}, 1 =>{:accounting_budget_id =>"105", :amount =>"0,00", :transaction_type =>"income"}}}, :correction =>{:correction_real =>"", :accounting_budget_id =>"105", :notice =>""}} | |
AccountingTransaction.build |
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
#!/bin/bash | |
function bad { | |
echo "Spatne heslo!" | |
exit 1 | |
} | |
echo -n "Zadej heslo: " | |
read HESLO |
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
source = "<a xmlns:x='foo' xmlns:y='bar'><x:b id='1'/><y:b id='2'/></a>" | |
doc = Document.new source | |
doc.elements["/a/x:b"].attributes["id"] # -> '1' | |
XPath.first(doc, "/a/m:b", {"m"=>"bar"}).attributes["id"] # -> '2' | |
doc.elements["//x:b"].prefix # -> 'x' | |
doc.elements["//x:b"].namespace # -> 'foo' | |
XPath.first(doc, "//m:b", {"m"=>"bar"}).prefix # -> 'y' |
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
has_many :tags, :conditions => ["person_id IN(?)", (self.accounting_sharing_with.nil? ? self.id : (self.accounting_sharing_with + self))] |
OlderNewer