This file contains 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
/*! | |
* Start Bootstrap - Creative Bootstrap Theme (http://startbootstrap.com) | |
* Code licensed under the Apache License v2.0. | |
* For details, see http://www.apache.org/licenses/LICENSE-2.0. | |
*/ | |
html, | |
body { | |
width: 100%; | |
height: 100%; |
This file contains 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 Profile | |
include ActiveModel::Model | |
# include ActiveModel::Serializers::JSON | |
include ActiveModel::AttributeMethods | |
include ActiveModel::Dirty | |
# include ActiveModel::Validations | |
def initialize(params= {}) | |
@avatar = params['avatar'] |
This file contains 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 Identificacion | |
include ActiveModel::Model | |
include ActiveModel::Serializers::JSON | |
include ActiveModel::AttributeMethods | |
include ActiveModel::Validations | |
define_attribute_methods :numeroIdentificacion, :tipoIdentificacion, :lugarExpedicion, :anulado, :fechaCreacion, :preferido, :id, :perfilId | |
attr_accessor :numeroIdentificacion, :tipoIdentificacion, :lugarExpedicion, :anulado, :fechaCreacion, :preferido, :id, :perfilId |
This file contains 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 ProfilesController < ApplicationController | |
# before_action :set_profile, only: [:show, :edit, :update, :destroy] | |
def show | |
@profile = Profile.find(current_user.userId,current_user.id) | |
signos = Concepto.find_all(current_user.id) | |
observaciones = Observacion.find(current_user.userId,current_user.id) | |
@signos = ConceptoPresenter.new(signos, observaciones) | |
@signos.todos | |
# return render :edit unless @profile.nombres.primerNombre | |
This file contains 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 Avatar | |
include ActiveModel::Model | |
# include ActiveModel::Serializers::JSON | |
include ActiveModel::AttributeMethods | |
include ActiveModel::Dirty | |
# include ActiveModel::Validations | |
def get_avatar(avatar_url,access_token) |
This file contains 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
// Numbers | |
let myNumber = 123.1234; | |
console.log(myNumber); | |
console.log("toString: ", myNumber.toString()); | |
console.log("toFixed: ", myNumber.toFixed(0)); | |
console.log("toFixed: ", myNumber.toFixed(1)); | |
console.log("toFixed: ", myNumber.toFixed(4)); |