Skip to content

Instantly share code, notes, and snippets.

View arcanoix's full-sized avatar
:octocat:
Developer Code Now Work

Gustavo Herrera arcanoix

:octocat:
Developer Code Now Work
View GitHub Profile
@arcanoix
arcanoix / ScriptParaValidacionDeApiRestSOAPUI.groovy
Created November 9, 2017 10:51 — forked from edgardo001/ScriptParaValidacionDeApiRestSOAPUI.groovy
Este script permite leer una peticion del tipo json y verificar si su contenido es correcto o no, si es correcto debera escribir en disco el contenido de json.respuesta
/**
* Ref: https://community.smartbear.com/t5/SoapUI-Pro/How-to-parse-JSON-or-XML-in-Assertions/m-p/149830#M34177
* This is script assertion for reading json response and get the size of the array and print array data
* Also see the demo : https://ideone.com/Z3wyfh
**/
//VER posibles respuestas de API REST al final de este script
//Obtengo la data retornada por el servidor y la convierto en json para luego recorrerlo como un objeto
def json = new groovy.json.JsonSlurper().parseText(context.response);
@arcanoix
arcanoix / template_repeater.js
Created January 29, 2018 16:39 — forked from elib0/template_repeater.js
Elementos din谩micos con jquery(Boton de agregar y eliminar los elementos)
$.on('click','.dinamic .add',function(e){
/* Elementos dinamicos. Solo es necesario agregar las clases dinamic, add y remove,
como se muestra en el ejemplo a continuacion:
<div class="dinamic">(contenedor)
<div>(elemento inicial)
<input/>
<button type="button" class="add">agregar</button>
</div>
<script class="template" type="text/x-jquery-tmpl">(plantilla de nuevo elemento)
<div>
@arcanoix
arcanoix / media-query.css
Created March 16, 2018 17:20 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@arcanoix
arcanoix / users_migration_and_database_seeder.php
Created March 22, 2018 04:38 — forked from technoknol/users_migration_and_database_seeder.php
Lumen 5.4/Laravel 5.4 Users migration and database Seeder
<?php
// Migration file
// database\migrations\create_users_table.php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
@arcanoix
arcanoix / blog.md
Created April 6, 2018 22:18 — forked from JacobBennett/blog.md
Clean up your Vue modules with ES6 Arrow Functions

Recently when refactoring a Vue 1.0 application, I utilized ES6 arrow functions to clean up the code and make things a bit more consistent before updating to Vue 2.0. Along the way I made a few mistakes and wanted to share the lessons I learned as well as offer a few conventions that I will be using in my Vue applications moving forward.

The best way to explain this is with an example so lets start there. I'm going to throw a rather large block of code at you here, but stick with me and we will move through it a piece at a time.

<script>

// require vue-resource...

new Vue({
@arcanoix
arcanoix / README.md
Created April 17, 2018 13:30 — forked from addyosmani/README.md
108 byte CSS Layout Debugger

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version

@arcanoix
arcanoix / mysql_backup.sh
Created April 25, 2018 11:32 — forked from tleish/mysql_backup.sh
Bash Script to backup all MySQL databases
#!/bin/bash
#==============================================================================
#TITLE: mysql_backup.sh
#DESCRIPTION: script for automating the daily mysql backups on development computer
#AUTHOR: tleish
#DATE: 2013-12-20
#VERSION: 0.4
#USAGE: ./mysql_backup.sh
#CRON:
# example cron for daily db backup @ 9:15 am
@arcanoix
arcanoix / colaborar.md
Created May 31, 2018 18:37 — forked from 3rn3st0/colaborar.md
Colaborando en un proyecto en Git

C贸mo colaborar en un proyecto en GitHub

M谩s de una vez se te habr谩n presentado las ganas de corregir alg煤n "error" en alg煤n c贸digo que te hayas encontrado en Git. Tal vez sean s贸lo ganas de demostrar tus conocimientos o simplemente tu deseo de ayudar a otros. Hacerlo es sencillo, para hacerlo, debes seguir los pasos que describo m谩s adelante.

NOTA: Este gist est谩 basado en el trabajo de BCasal.es, el cual pueden leer directamente aqu铆. 馃憤

1 Hacer fork al repositorio seleccionado

@arcanoix
arcanoix / gist:f91a61112084db8941358f98b84abb9d
Created October 3, 2018 22:04 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 馃槃 :smile: 馃槅 :laughing:
馃槉 :blush: 馃槂 :smiley: 鈽猴笍 :relaxed:
馃槒 :smirk: 馃槏 :heart_eyes: 馃槝 :kissing_heart:
馃槡 :kissing_closed_eyes: 馃槼 :flushed: 馃槍 :relieved:
馃槅 :satisfied: 馃榿 :grin: 馃槈 :wink:
馃槣 :stuck_out_tongue_winking_eye: 馃槤 :stuck_out_tongue_closed_eyes: 馃榾 :grinning:
馃槜 :kissing: 馃槞 :kissing_smiling_eyes: 馃槢 :stuck_out_tongue:
@arcanoix
arcanoix / index.md
Created March 15, 2019 20:58
Creating Login, Register page with Ionic

Create new Ionic project with blank template

ionic start login blank
cd login
ionic g provider authService
ionic g page register
ionic g page login