Skip to content

Instantly share code, notes, and snippets.

View NekoTashi's full-sized avatar

Christopher Rubio Márquez NekoTashi

View GitHub Profile
This file has been truncated, but you can view the full file.
{
"lighthouseVersion": "10.4.0",
"requestedUrl": "https://www.falabella.com/falabella-cl",
"mainDocumentUrl": "https://www.falabella.com/falabella-cl",
"finalDisplayedUrl": "https://www.falabella.com/falabella-cl",
"finalUrl": "https://www.falabella.com/falabella-cl",
"fetchTime": "2023-07-28T00:55:24.386Z",
"gatherMode": "navigation",
"runWarnings": [],
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36",
@NekoTashi
NekoTashi / fields.md
Last active June 30, 2021 18:33
item-fields
field type detail
code_chain string En blanco
sku int ID Unico
name string Descripcion del SKU
description string Descripcion del SKU
short_description string Existe Campo pero no manejos datos en él, lo enviaremos en Blanco
category1 string codigo del Grupo
description_category1 string Descripcion del grupo
category2 string codigo del subgrupo
ACTIVITY_LENGUAGE_CHOICE = (
('español', 'Español'),
('english', 'English'),
)
class UserProfile(models.Model):
# relations
user = models.OneToOneField(User)
DECLARE
i number(3);
j number(3);
function es_primo(p int) return boolean
is
BEGIN
FOR k in reverse 2..(p-1) LOOP
IF mod(p, k) = 0 THEN
RETURN false;
END IF;
DECLARE
TYPE t_array IS TABLE OF integer INDEX BY varchar2(2000);
v_array t_array;
i integer;
j integer;
function es_primo(p int) return boolean
is
BEGIN
FOR k in reverse 2..(p-1) LOOP
IF mod(p, k) = 0 THEN
################ LOGEO #####################
usshorario.ddns.net:8080/auth/login [POST]
HEADER:
Content-Type: application/json; charset=utf-8
BODY:
{
"username": "17.304.391-0",
"password": "password"
}
@NekoTashi
NekoTashi / notes.md
Last active April 16, 2019 18:15
Instance Group GCP
  • gcloud compute ssh qmatch-web-capture-scraper-5 --project miin-vps --zone us-east1-c
  • sudo su
  • su - ldiaz
  • pm2 start <file.js>
  • pm2 logs
  • pm2 stop <file.js>
  • pm2 delete <id|name>
  • qmatch-web-capture-selectors-img-001
@NekoTashi
NekoTashi / notas.md
Created November 22, 2018 18:26
ArrayReferenceField
title permalink
Using Djongo Array Reference Field
/using-django-with-mongodb-array-reference-field/

Array Reference field

The ArrayReferenceField is one of the most powerful features of Djongo. The ArrayModelField stores the embedded models within a MongoDB array as embedded documents for each entry. If entries contain duplicate embedded documents, using the ArrayModelField would require unnecessary disk space. The ManyToManyField on the other hand has a separate table for all the entries. In addition, it also creates an intermediate "through/join" table which records all the mappings.

The ArrayReferenceField is a bargain between the ArrayModelField and ManyToManyField. A separate collection is used for storing all entries (instead of embedding it as an array). This means there is no data duplication. However, the intermediate "through/join" mapping table is completely skipped! This is achieved by storing only a reference to the entries in the embedded array.

@NekoTashi
NekoTashi / activate_venv.sh
Created October 12, 2018 14:54
How to activate venv inside a bash script.
#!/bin/sh
set -e
cd "<virtualenv_dir>"
source bin/activate
# -- Your code here!