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
export CLICOLOR=1 | |
export LSCOLORS=CxFxExDxBxegedabagacad | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' | |
} | |
function proml { | |
local WHITE="\[\033[40;0;37m\]" | |
local LIGHT_GRAY="\[\033[47;1;30m\]" | |
case $TERM in |
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
export CLICOLOR=1 | |
export LSCOLORS=CxFxExDxBxegedabagacad | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' | |
} | |
function proml { | |
local WHITE="\[\033[40;0;37m\]" | |
local LIGHT_GRAY="\[\033[47;1;30m\]" | |
case $TERM in |
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 ActionController::InvalidAuthenticityToken occurred in orders#process_autentification: | |
ActionController::InvalidAuthenticityToken | |
actionpack (3.0.3) lib/action_controller/metal/request_forgery_protection.rb:96:in `verify_authenticity_token' | |
------------------------------- | |
Request: | |
------------------------------- | |
* URL : http://slevomor.cz/slevy/88/objednavky/overeni |
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
activesupport (3.0.3) lib/active_support/dependencies.rb:479:in `load_missing_constant' | |
activesupport (3.0.3) lib/active_support/dependencies.rb:183:in `block in const_missing' | |
activesupport (3.0.3) lib/active_support/dependencies.rb:181:in `each' | |
activesupport (3.0.3) lib/active_support/dependencies.rb:181:in `const_missing' | |
app/controllers/admin/skrzemor/servers_controller.rb:4:in `index' | |
actionpack (3.0.3) lib/action_controller/metal/implicit_render.rb:4:in `send_action' | |
actionpack (3.0.3) lib/abstract_controller/base.rb:151:in `process_action' | |
actionpack (3.0.3) lib/action_controller/metal/rendering.rb:11:in `process_action' | |
actionpack (3.0.3) lib/abstract_controller/callbacks.rb:18:in `block in process_action' | |
activesupport (3.0.3) lib/active_support/callbacks.rb:470:in `_run__709808574532974554__process_action__4244062020100479378__callbacks' |
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
skrzemor_deal_image = Net::HTTP.get(URI.parse(image)) | |
tempfile = Tempfile.new('deal') | |
File.open(tempfile.path,'w') do |f| | |
f.write skrzemor_deal_image | |
end | |
skrzemor_deal_image = tempfile.path | |
save |
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_one :city_name, :primary_key => "city", :foreign_key => "name", :class_name => "City" | |
has_one :catalog_area, :through => :city_name | |
### | |
CatalogArea Load (0.4ms) SELECT `catalog_areas`.* FROM `catalog_areas` INNER JOIN `cities` ON `catalog_areas`.id = `cities`.catalog_area_id WHERE ((`cities`.name = 100)) LIMIT 1 |
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 CatalogArea | |
# == Schema Information | |
# | |
# Table name: catalog_areas | |
# | |
# id :integer(4) not null, primary key | |
# name :string(255) | |
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
<table> | |
<tr> | |
<td align="center" rowspan="1">DPP-21849</td> | |
</tr> | |
<tr> | |
<td width="100%" align="center" rowspan="1"> | |
Update public servers to release 2011 | |
</td> | |
</tr> | |
<tr> |
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 NoMethodError occurred in #: | |
undefined method `closed?' for nil:NilClass | |
/usr/local/lib/ruby/1.8/net/http.rb:1060:in `__request__' | |
------------------------------- | |
Request: | |
------------------------------- | |
* URL : http://www.slevomor.cz/auth/foursquare/callback?code=GRBCCFEPECFK3MTY5FCEDSF4SKWA4GH1EPP2KBSAFMB22ZWX |
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
<h1> | |
Slevomor kredity</h1> | |
<p> | |
<strong>Slevomor Ti při Tvých aktivitách na tomto webu rozdává peníze. Šetři si je a při dalších nákupech můžeš mít voucher třeba zcela zdarma. A za co že Ti Slevomor rozdává peníze?</strong></p> | |
<h2> | |
1 kredit = 1 Kč</h2> | |
<ul> | |
<li> | |
získej až <strong>50 kreditů</strong> za každý nákup (hodnota kreditů je uvedena u každé slevy)</li> | |
<li> |