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
# config/initializers/carrierwave_direct.rb | |
require "carrierwave_direct" | |
module CarrierWaveDirect | |
module SignatureFixMonkeyPatch | |
def policy(options = {}) | |
options[:expiration] ||= upload_expiration | |
options[:min_file_size] ||= min_file_size | |
options[:max_file_size] ||= max_file_size |
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 Api::V1::TokensController < ApplicationController | |
skip_before_filter :verify_authenticity_token | |
respond_to :json | |
def create | |
email = params[:email] | |
password = params[:password] | |
if request.format != :json | |
render :status=>406, :json=>{:message=>"The request must be json"} |
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
$("#sparkline").sparkline([0,0,20,12,9,7], { | |
type: 'bullet', | |
targetWidth: 0, | |
targetColor: '#', | |
performanceColor: '#', | |
rangeColors: ['#d3dafe','#a8b6ff','#7f94ff','#2f14ff ']}); |
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
var dataSource = [ | |
{ state: "Germany", young: 6.7, middle: 28.6, older: 5.1 } | |
]; | |
$("#chartContainer").dxChart({ | |
dataSource: dataSource, | |
rotated: true, | |
commonAxisSettings: { | |
label: { visible: false }, | |
grid: { visible: false } |
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
$("#ingreso_departamento_id").change(function(){ | |
if($(this).val() >0){ | |
$.get('/show_nombre_propietario/'+ $(this).val(), function(data) { | |
$('#ingreso_propietario').val(data); | |
$('#ingreso_propietario').parent().parent().show('slow'); | |
}); | |
} | |
}); |
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
background-color: #026873; | |
background-size: 13px 13px, 29px 29px, 37px 37px, 53px 53px; | |
background-image: -webkit-linear-gradient(0, rgba(255,255,255,.07) 50%, transparent 50%), | |
-webkit-linear-gradient(0, rgba(255,255,255,.13) 50%, transparent 50%), | |
-webkit-linear-gradient(0, transparent 50%, rgba(255,255,255,.17) 50%), | |
-webkit-linear-gradient(0, transparent 50%, rgba(255,255,255,.19) 50%); | |
background-image: -moz-linear-gradient(0, rgba(255,255,255,.07) 50%, transparent 50%), | |
-moz-linear-gradient(0, rgba(255,255,255,.13) 50%, transparent 50%), | |
-moz-linear-gradient(0, transparent 50%, rgba(255,255,255,.17) 50%), | |
-moz-linear-gradient(0, transparent 50%, rgba(255,255,255,.19) 50%); |