-
Go to Preferences -> Key Bindings - User
-
Paste this code for hotkey ctrl+shift+ñ:
[ { "keys": ["ctrl+shift+ñ"], "command": "reindent", "args": {"single_line": false}} ]
$args = array( | |
'posts_per_page' => 1, | |
'orderby' => 'rand', | |
'post_type' => 'product' ); | |
$random_products = get_posts( $args ); | |
foreach ( $random_products as $post ) : setup_postdata( $post ); ?> | |
<li> | |
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> |
function last_day(yyyy, mm){ | |
var sum = parseInt(mm) + 1; | |
int_d = new Date(yyyy, sum ,1); | |
var dd = new Date(int_d - 1); | |
return dd; | |
} | |
var today = new Date(); | |
var mm = today.getMonth(); |
$scope.incomes = {'max': 100}; | |
$scope.$watch(function() { | |
return $scope.incomes.max; | |
}, function(newValue, oldValue) { | |
console.log("change detected: " + newValue) | |
}); |
function shortcode_carousel() { | |
$images = ''; | |
$args = array( | |
'posts_per_page' => 9, | |
'orderby' => 'rand', | |
'post_type' => 'product' ); | |
$random_products = get_posts( $args ); |
background-image: linear-gradient(to right, #34495e, #34495e 25%, | |
#9b59b6 25%, #9b59b6 35%, #3498db 35%, #3498db 45%, #62cb31 45%, | |
#62cb31 55%, #ffb606 55%, #ffb606 65%, #e67e22 65%, #e67e22 75%, | |
#e74c3c 85%, #e74c3c 85%, #c0392b 85%, #c0392b 100%); |
Rails.application.configure do | |
# Use environment names or environment variables: | |
# break unless Rails.env.production? | |
break unless ENV['ENABLE_COMPRESSION'] == '1' | |
# Strip all comments from JavaScript files, even copyright notices. | |
# By doing so, you are legally required to acknowledge | |
# the use of the software somewhere in your Web site or app: | |
uglifier = Uglifier.new output: { comments: :none } |
constraints subdomain: 'www' do | |
get ':any', to: redirect(subdomain: nil, path: '/%{any}'), any: /.*/ | |
end |
/* Translated validation error messages to Spanish */ | |
/* Author: https://github.com/iamravenous */ | |
$.extend($.validator.messages, { | |
required: "Este campo es obligatorio.", | |
remote: "Por favor, rellena este campo.", | |
email: "Por favor, escribe una dirección de correo válida.", | |
url: "Por favor, escribe una URL válida.", | |
date: "Por favor, escribe una fecha válida.", | |
dateISO: "Por favor, escribe una fecha (ISO) válida.", |
<title><%= @page_title.present? ? @page_title + " - RSA Chile" : "RSA Chile - Trabaja con nosotros" %></title> |