Skip to content

Instantly share code, notes, and snippets.

View jusk02's full-sized avatar

Juan David Ramirez jusk02

View GitHub Profile
// 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));
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)
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
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
class Profile
include ActiveModel::Model
# include ActiveModel::Serializers::JSON
include ActiveModel::AttributeMethods
include ActiveModel::Dirty
# include ActiveModel::Validations
def initialize(params= {})
@avatar = params['avatar']
/*!
* 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%;