Skip to content

Instantly share code, notes, and snippets.

View kennyhorna's full-sized avatar
🏠
Working from home

Kenny Horna kennyhorna

🏠
Working from home
View GitHub Profile
@kennyhorna
kennyhorna / webpack.mix.js
Created May 12, 2021 23:44
Laravel Valet + Laravel Mix + BrowserSync
const mix = require('laravel-mix');
/* ... */
if (! mix.inProduction()) {
let homedir = require('os').homedir();
// e.g SESSION_DOMAIN = myapp.test
let domain = process.env.SESSION_DOMAIN;
@kennyhorna
kennyhorna / aprobar-pull-request-bitbucket.adoc
Created June 9, 2020 21:21 — forked from domingogallardo/aprobar-pull-request-bitbucket.adoc
Flujo de trabajo con Git para gestionar y aprobar un Pull Request (PR) en un repositorio remoto compartido en Bitbucket

Veamos un flujo de trabajo con Git para gestionar y aprobar un Pull Request (PR) en un repositorio remoto compartido. El flujo de trabajo se ha comprobado que funciona correctamente en repositorios remotos gestionados en Bitbucket.

Suponemos un equipo formado por 3 desarrolladores (Ana, Lucía y Carlos) que están trabajando sobre un repositorio compartido utilizando el flujo de trabajo denominado Gitflow (ver el post de Vicent Driessen). En la rama develop se integran las features que se van desarrollando en ramas independientes.

Se ha definido la política de que antes de integrar una rama de característica se debe realizar un Pull Request en Bitbucket y algún otro miembro del equipo debe comprobar su funcionamiento y dar el visto bueno. La integración la realizará el mismo desarrollador que ha creado el Pull Request. Aunque Bitbucket proporciona la opción de cerrar el PR desde la interfaz web, utilizaremos comandos Git en e

@kennyhorna
kennyhorna / api.web.matrix.show.json
Last active June 1, 2020 17:25
Matriz de precios
{"id":1,"name":"Pac\u00edfico","image":"company\/pacifico.jpg","flagactive":1,"price":"100","image_url":"http:\/\/maszeguroapp.test\/dinamic\/company\/pacifico.jpg","usecars":[{"id":1,"name":"Particular","company_usecar":1,"matrices":[{"id":1,"broker_usecar_id":1,"classcar_id":1,"brand_id":null,"flagactive":1,"modalitymodel":2,"modalityprice":1,"modalitybrand":1,"price":null,"classcar":{"id":1,"name":"Autom\u00f3vil"},"models":[],"prices":[{"id":27,"price":"29.00","matrix_id":1,"company_id":null,"ubigeos":[{"id":"369","department":"Arequipa","province":null,"district":null,"ubigeo":"040000","pivot":{"price_id":27,"ubigeo_id":369}}]},{"id":28,"price":"31.00","matrix_id":1,"company_id":null,"ubigeos":[{"id":"93","department":"\u00c1ncash","province":null,"district":null,"ubigeo":"020000","pivot":{"price_id":28,"ubigeo_id":93}},{"id":"369","department":"Arequipa","province":null,"district":null,"ubigeo":"040000","pivot":{"price_id":28,"ubigeo_id":369}}]},{"id":29,"price":"12.00","matrix_id":1,"company_id":null,"
@kennyhorna
kennyhorna / list.json
Created April 8, 2020 21:33
Listado de usuarios
{
"state": 1,
"msg": "All user records.",
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"name": "Kristin Goodwin",
"last_name": "Muller",
{
"state": 1,
"msg": "Respuesta correcta",
"data": {
"banks": [
{
"id": 1,
"code": "bcp",
"name": "BCP",
"status": 1
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Atelier</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
[
{
"featureType": "poi",
"elementType": "labels.text",
"stylers": [
{
"visibility": "off"
}
]
},
package com.artifucio.pichangaplayer.utils.culqi;
import android.content.Context;
import android.util.Log;
import com.android.volley.AuthFailureError;
import com.android.volley.DefaultRetryPolicy;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
{
"reservation_id": 635,
"user_full_name": "Reserva manual",
"user_image": "images/users/avatars/default.jpg",
"venue_id": 35,
"venue_name": "Arena Fútbol 82",
"venue_address": "5505 Isabella Mountain Suite 506",
"date": "06/06/2018",
"status": "pending",
"is_manual": true,
{
"reservation_id": 634,
"user_id": 1,
"user_full_name": "Kenny Chingon Horna",
"user_image": "images/users/avatars/1.jpeg",
"venue_id": 63,
"venue_name": "Canchita 01",
"venue_address": "82634 Mazie Green",
"date": "08/06/2018",
"status": "cancelled",