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
/** | |
@author Alejo Sotelo <alejosotelo.com.ar> | |
@date 2022-07-20 | |
*/ | |
async function getFacturas(from, to, tipoComprobante) { | |
var query = encodeURIComponent(from + '+-+' + to + '&tiposComprobantes[]=' + tipoComprobante) | |
var r = await fetch("https://serviciosjava2.afip.gob.ar/mcmp/jsp/ajax.do?f=generarConsulta&t=E&fechaEmision=" + query, { |
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
/** | |
* Se le pasan las horas (String) como parámetro, le hace un split por salto de linea | |
* y se suman. | |
* Lo uso para exportar las horas de toggl y contabilizar las horas trabajadas. | |
*/ | |
function sumarHoras(horas) { | |
if (!Array.isArray(horas)) { | |
horas = horas.split('\n') | |
} |
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
/** | |
Buscar Cauciones en https://invertironline.com/ | |
Hay que ejecutar este script abriendo la consola dentro de invertironline.com y con la sesión iniciada. | |
En este ejemplo busca cauciones con una tasa de interés mínima de 130% para un monto mínimo de $100.000 de 1 a 30 días como máximo. | |
*/ | |
async function getCauciones(dias) { | |
const response = await fetch("https://iol.invertironline.com/Mercado/GetCaucionPuntas", { | |
"credentials": "include", | |
"headers": { |
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
<?php | |
namespace Silvanite\Brandenburg\Traits; | |
use Silvanite\Brandenburg\Role; | |
trait HasRoles | |
{ | |
/** | |
* Get all Roles given to this user |
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
# Script SQL para eliminar pedidos, carritos y clientes de Prestashop 1.7 y todas sus tablas relacionadas. | |
# Este script sirve para cuando queres desactivar una multitienda que tuvo pedidos hechos o clientes creados y por este motivo no te deja eliminar la tienda. | |
# Luego de ejecutar este script te va a permitir eliminar la tienda sin problemas. | |
# | |
# HACER BACKUP de la base de datos porque una vez ejecutado este script no hay vuelta a atrás. | |
# Seteo el ID de la tienda a eliminar los pedidos. | |
set @idShop = 999; | |
DELETE FROM ps_customer WHERE id_shop = @idShop; |
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
@baseUrl = https://midominio.com.ar/api/ | |
@apiKey = MI_API_KEY_CREADA_EN_PRESTASHOP | |
@authorizationKey = {{apiKey}}: | |
### | |
GET {{baseUrl}}?output_format=JSON HTTP/1.1 | |
Authorization: Basic {{authorizationKey}} |
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
@apiToken = | |
@baseURL = https://api.track.toggl.com/api/v9/ | |
@workspaceId = {{workspaces.response.body.$[0].id}} | |
// Busca un workspace id por su nombre. Cambiar MY_NAME por el name de tu workspace | |
@projectIdByName = {{projects_by_workspace.response.body.$[?(@.name == 'MY_NAME')].id}} | |
### |
OlderNewer