Skip to content

Instantly share code, notes, and snippets.

View hrbullon's full-sized avatar
🎯
Focusing

Haderson hrbullon

🎯
Focusing
  • Venezuela, Maracaibo
View GitHub Profile
##How to solve Error: MySQL shutdown unexpectedly
#IMPORTANT: do NOT delete ibdata1 file. You could destroy all your databases.
Instead, first try using the MySQL backup folder which is included with XAMPP. So do next steps:
Rename folder mysql/data to mysql/data_old
Make a copy of mysql/backup folder and name it as mysql/data
Copy all your database folders from mysql/data_old into mysql/data (except mysql, performance_schema, and phpmyadmin folders)
Copy mysql/data_old/ibdata1 file into mysql/data folder
##Launching Fragment with args
val fragment = EditStoreFragment()
if(args != null) fragment.arguments = args
val fragmentManager = supportFragmentManager
val fragmentTransaction = fragmentManager.beginTransaction()
fragmentTransaction.add(R.id.containerMain, fragment)
fragmentTransaction.addToBackStack(null)
fragmentTransaction.commit()
@hrbullon
hrbullon / desviacion_es.php
Created August 13, 2021 02:21 — forked from evilnapsis/desviacion_es.php
Calcular varianza y desviación estándar en PHP
<?php
/**
* Calcular desviacion Estandar
* @author evilnapsis
**/
$nums = array(1,4,7,2,6);
$sum=0;
for($i=0;$i<count($nums);$i++){
$sum+=$nums[$i];
<style type="text/css">
table.page_header {width: 100%; border: none;}
table.page_footer {width: 100%; border: none;}
</style>
<page backtop="14mm" backbottom="14mm" backleft="10mm" backright="10mm" style="font-size: 8pt">
<page_header>
</page_header>
<page_footer>
<table class="page_footer">
@hrbullon
hrbullon / laravel-commands.md
Last active June 13, 2019 07:54
Laravel Commands

Top commands in Laravel

First, there is a command php artisan list which gives us all the commands, like this:

  • make:auth Scaffold basic login and registration views and routes
  • make:command Create a new Artisan command
  • make:controller Create a new controller class
  • make:event Create a new event class
  • make:job Create a new job class
@hrbullon
hrbullon / README-español.md
Created June 12, 2019 11:11 — forked from Villanuevand/README-español.md
Una plantilla para hacer un buen README.md. Inspirado en el gist de @PurpleBooth => https://gist.github.com/PurpleBooth/109311bb0361f32d87a2

Título del Proyecto

Acá va un párrafo que describa lo que es el proyecto

Comenzando 🚀

Estas instrucciones te permitirán obtener una copia del proyecto en funcionamiento en tu máquina local para propósitos de desarrollo y pruebas.

Mira Deployment para conocer como desplegar el proyecto.

@hrbullon
hrbullon / Comandos
Created June 3, 2019 18:24
comadnos
test
@hrbullon
hrbullon / utilies.js
Last active September 23, 2019 13:46
Utils Javascript Functions
/**
* This functions is for ajax error handling
* Now it can captch these erroCode 0,400,403,404 y 500, so you can add more an more status code
*/
$(function() {
//Setup ajax error handling
$.ajaxSetup({
data: {
'csrf_tkn': $("[name='csrf_tkn']").val()//If you have a token that you need to send in each one requests
},