Skip to content

Instantly share code, notes, and snippets.

<% if article.is_childless? %>
<li><%= link_to article.title, article_path(article) %></li>
<% else %>
<li class="dropdown">
<%= link_to '#', class: 'dropdown-toggle', data: { toggle: 'dropdown'} do %>
<%= article.title %>
<b class="caret"></b>
<% end %>
<ul class="dropdown-menu">
<%= render partial: 'site/menu', collection: article.children, as: :article %>
@dbarison
dbarison / 0_reuse_code.js
Created August 29, 2014 10:56
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@dbarison
dbarison / gist:62faeaa2fc81ab30a68a
Created October 23, 2014 11:02
Block unicorn from external access
iptables -A INPUT -i lo -p tcp --destination-port 3000:3060 -j ACCEPT
iptables -A INPUT -p tcp --destination-port 3000:3060 -j DROP
### Keybase proof
I hereby claim:
* I am dbarison on github.
* I am davidebarison (https://keybase.io/davidebarison) on keybase.
* I have a public key whose fingerprint is EE94 39E0 C088 A74D 162A 9E71 A0FA C825 F9F0 2C03
To claim this, I am signing this object:
class Product < ActiveRecord::Base
include HasTranslationOrder
has_translation_order :fields => [:name, :excerpt, :description, :seo_title, :seo_desc], :associations => [:content, :variant, :property], :comment_method => :job_comment
end
pt-BR:
routes:
pages: azienda
posts: news
products: prodotti
message: contatti
portfolio: realizzazioni
advantages: vantaggi
company: eternoivica
group: gruppo
en:
fiere: expo
Prodotti correlati: Related products
Selezionando una di queste opzioni visualizzerai sulla mappa i risultati trovati: Selecting one of these options you'll see the results on the map
Specificare professione: Specify job
Abilità prodotti + contenuti:
Abilità solo contenuti:
archivio: archive
Accedi al software per il calcolo supporti: Access to calculation software
'Accedi al software per il calcolo supporti ': Access to calculation software
class VideoCompresser < Paperclip::Processor
# def initialize(file, options = {}, attachment = nil)
# super
# @file = file
# @whiny = options[:whiny].nil? ? true : options[:whiny]
# @basename = File.basename(@file.path, File.extname(@file.path))
# @format = options[:format]
# @geometry = options[:geometry].nil? ? nil : Paperclip::Geometry.parse(options[:geometry])
# end
---
en:
Richiedi un preventivo: Request a quote
Chiedi una consulenza gratuita: Request a free consultation
ANTEPRIMA: PREVIEW
Ragione sociale: Company Name
Accedi ai disegni tecnici: Click here for technical drawings
Accedi al software per il calcolo supporti: Access to calculation software
'Accedi al software per il calcolo supporti ': Access to calculation software
Accedi alla rete vendita: Explore sales network
GEM
remote: http://rubygems.org/
specs:
actionmailer (3.2.19)
actionpack (= 3.2.19)
mail (~> 2.5.4)
actionpack (3.2.19)
activemodel (= 3.2.19)
activesupport (= 3.2.19)
builder (~> 3.0.0)