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
<style> | |
section.pricing { | |
/* | |
background: #007bff; | |
background: linear-gradient(to right, #0062E6, #33AEFF); | |
*/ | |
} | |
.pricing .card { | |
border: none; |
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
<style> | |
section.pricing { | |
/* | |
background: #007bff; | |
background: linear-gradient(to right, #0062E6, #33AEFF); | |
*/ | |
} | |
.pricing .card { | |
border: none; |
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
import { Controller } from "@hotwired/stimulus" | |
// Para filtrar rápido una tabla ocultando las rows que no coinciden con la búsqueda | |
// permite definir headers para poder filtrar por columna con sintaxis "columna:valor" | |
// Ejemplo: | |
// <div data-controller="filter"> | |
// <input type="text" data-filter-target="query"> | |
// <table> | |
// <tr data-filter-target="header"><th>Nombre</th><th>Apellido</th></tr> | |
// <tr data-filter-target="item"><td>John</td><td>Doe</td></tr> |
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
import { Controller } from "@hotwired/stimulus" | |
// Ajusta el tamaño el font-size para que el texto entre en el elemento | |
// Ejemplo: | |
// <input type="text" data-controller="text-fit" "data-fit-text-default-size-value="5" data-fit-text-unit-value="rem" data-fit-text-step-value="0.1"> | |
// data-controller="fit-text" | |
// data-fit-text-default-size-value="20" (required) | |
// data-fit-text-unit-value="px" (required) | |
// data-fit-text-step-value="1" (required) | |
export default class extends Controller { |
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
import { Controller } from "@hotwired/stimulus" | |
import PullToRefresh from "pulltorefreshjs" | |
/* | |
* Add data-controller="pull-to-refresh" to the element you want to be pulled on. | |
*/ | |
export default class extends Controller { | |
connect() { | |
PullToRefresh.init({ | |
mainElement: this.element, |
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
//if($("body.subscribe").length){ // estoy en subscribe | |
alert("testing"); | |
//} |
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
# Para listar los nombres posibles en lugar de Internal Mic Boost | |
# ejecutar: | |
# amixer scontrols | |
loop do | |
system "amixer set 'Internal Mic Boost' 80" | |
sleep 1 | |
end |
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.user.custom_data = { [20/104] | |
user_id: Proc.new { |user| user.username }, # eg: 'dwayne.macgowan' | |
language_override: Proc.new { |user| user.locale.try(:first,2) }, # valores: 'es', 'pt' | |
name: Proc.new { |user| user.username.split('.').join(' ').titleize if user.username }, # eg: 'Dwayne Macgowan' | |
is_admin: Proc.new { |user| user.padma_roles_in(user.current_account.name).try(:include?,'admin') if user.current_account }, | |
created_at: Proc.new {|user| nil } # created_at should only be sent by accounts-ws | |
} | |
config.company.custom_data = { | |
id: Proc.new { |account| account.name }, # eg: 'belgrano', 'cervino', 'jardins', 'alamedacampinas' |
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
module Contacts | |
HYDRA = ::HYDRA | |
API_KEY = ENV['contacts_key'] | |
end |
NewerOlder