sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
| import csv | |
| from collections import defaultdict | |
| SILVER_PLAN = 'Silver' | |
| def read_data_csv(filename): | |
| with open(filename, mode='r') as csv_file: | |
| reader = csv.DictReader(csv_file) | |
| return [row for row in reader] |
| with table_dates AS ( | |
| SELECT generate_series(CURRENT_DATE, | |
| (date_trunc('MONTH', CURRENT_DATE) + INTERVAL '1 MONTH - 1 day')::DATE, | |
| '1 day'::interval)::date AS date_day | |
| ) SELECT * FROM table_dates WHERE EXTRACT(ISODOW FROM tabla_dias.fecha) IN (6, 7); |
| import axios from 'axios'; | |
| class OdooRpc { | |
| constructor() { | |
| this._actions = { | |
| dataset_call: 'web/dataset/call', | |
| dataset_call_kw: 'web/dataset/call_kw', | |
| dataset_search_read: 'web/dataset/search_read', | |
| search_read: 'search_read', | |
| }; |
| /* | |
| * Genarate rsa keys. | |
| */ | |
| package main | |
| import ( | |
| "crypto/rand" | |
| "crypto/rsa" | |
| "crypto/x509" |
| <?xml version="1.0" encoding="utf-8"?> | |
| <odoo> | |
| <data noupdate="1"> | |
| <!-- res.bank of Venezuela --> | |
| <record model="res.bank" id="0001"> | |
| <field name="name">Banco Central de Venezuela</field> | |
| <field name='bic'>BCV</field> | |
| <field name='active'>1</field> | |
| <field name='street'>Av. Urdaneta esq. Las Carmelitas</field> | |
| <field name='street2'>Carmelitas 1010</field> |
| [ | |
| { | |
| "codigo": "0102", | |
| "nombre": "Banco de Venezuela, S.A. Banco Universal", | |
| "rif": "G200099976" | |
| }, | |
| { | |
| "codigo": "0104", | |
| "nombre": "Venezolano de Crédito, S.A. Banco Universal", | |
| "rif": "J000029709" |
| var lang_es = { | |
| months:[ | |
| "Enero", | |
| "Febrero", | |
| "Marzo", | |
| "Abril", | |
| "Mayo", | |
| "Junio", | |
| "Julio", | |
| "Agosto", |
| select | |
| to_char(extract(week from (f1 + (i || ' weeks')::interval)),'09')::integer as semana, | |
| (f1 + (i || ' weeks')::interval)::date as fecha_inicio_semana, | |
| (f2 + (i || ' weeks')::interval)::date as fecha_fin_semana | |
| from ( | |
| select f1, f1 + 6 as f2 from ( | |
| select (current_date -(extract(week from current_date) - 1 || 'weeks')::interval)::date - (extract(dow from current_date)::integer - 1) as f1) as foo1 | |
| ) as foo2, generate_series(0, 52) as i | |
| where extract(year from (f1 + (i || ' weeks')::interval)) = extract(year from current_date) |
| [ | |
| { | |
| "nombre":"DEPENDENCIAS FEDERALES", | |
| "cod_estado_asap":25, | |
| "hc-key":"ve-dp", | |
| "id":45, | |
| "woe-id":"2347700" | |
| }, | |
| { | |
| "nombre":"NUEVA ESPARTA", |