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
{ | |
"folio": "A", | |
"issued_on": "2021-11-09T16:49:38", | |
"issued_at": "06600", | |
"series": "1", | |
"payment_form": "PUE", | |
"payment_method": "01", | |
"comments": "", | |
"currency": "MXN", | |
"exchange_rate": "1", |
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
{ | |
"status": "ok", | |
"invoice": { | |
"id": 1511441, | |
"client_name": "PUBLICO EN GENERAL", | |
"currency": "MXN", | |
"total": 104.4, | |
"pdf": { | |
"url": "https://production-listo-mx.s3.amazonaws.com/generated_invoices/invoice.pdf", | |
"filename": "4142257A-AF94-4C7E-A097-C34B65A9B553.pdf" |
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
require 'benchmark' | |
require 'launchy' | |
require 'ruby-prof' | |
reload! | |
def run | |
directory = Rails.root.join('tmp', 'profiles') | |
report_file = "#{directory}/benchmark.html" | |
FileUtils.mkdir_p directory |
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
SLEEP AND ADOLESCENCE | |
Why do we spend so much time in REM sleep in the womb and early in life, yet switch to a heavier dominance of deep NREM sleep in late childhood and early adolescence? If we quantify the intensity of the deep-sleep brainwaves, we see the very same pattern: a decline in REM-sleep intensity in the first year of life, yet an exponential rise in deep NREM sleep intensity in mid- and late childhood, hitting a peak just before puberty, and then damping back down. What’s so special about this type of deep sleep at this transitional time of life? | |
Prior to birth, and soon after, the challenge for development was to build and add vast numbers of neural highways and interconnections that become a fledgling brain. As we have discussed, REM sleep plays an essential role in this proliferation process, helping to populate brain neighborhoods with neural connectivity, and then activate those pathways with a healthy dose of informational bandwidth. | |
But since this first round of brain wiring is purposeful |
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
require 'rubygems' | |
require 'fast' | |
def nice_experiment_with(file) | |
parts = file.split('/') | |
dir = parts[0..-2] | |
filename = "experiment_#{parts[-1]}" | |
File.join(*dir, filename) | |
end |
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
//= require 'rails_admin/tagify.min' | |
$(function(){ | |
var inputs = document.querySelectorAll('input.comma_array') | |
var inputs_array = [...inputs] | |
inputs_array.forEach(input => { | |
var input = new Tagify(input, { | |
originalInputValueFormat: valuesArr => valuesArr.map(item => item.value).join(',') | |
}) |
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
alert('omg hi!') |
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
require 'rails_admin/config/fields/association' | |
module RailsAdmin | |
module Config | |
module Fields | |
module Types | |
class NotRemovableHasManyAssociation < RailsAdmin::Config:: | |
Fields:: | |
Types:: | |
HasManyAssociation |
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
aliadas_urls = [ | |
{ | |
url: 'https://client.facturify.com/models/multiempresa.php?type=defecto&id=12', | |
data: { | |
multi: 288, // ID of the company | |
}, | |
}, | |
] | |
artoo.ajaxSpider( |
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
{ | |
"username": "paulina@aliada.mx", | |
"password": "Facturify2016%", | |
"json": { | |
"emisor": { | |
"rfc": "AUDG920525111", | |
"receptor": { | |
"tipo_persona": "Persona Moral", | |
"rfc": "AEM130927BD7", | |
"RazonSocial": "APC EGS MX SA DE CV", |
NewerOlder