Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Gabriel Alejandro López López glpzzz

🏠
Working from home
View GitHub Profile
View dumper.php
<?php
namespace common\models;
/**
* Creates DB dump.
*
* @version 0.1
* @author fadeevms. Fork of https://bitbucket.org/rodzadra/yii-dump-db Rodrigo Zadra Armond <rodzadra@gmail.com>
*
@glpzzz
glpzzz / resume.json
Last active Jul 14, 2021
resume.json
View resume.json
{
"meta": {
"theme": "stackoverflow"
},
"$schema": "https://json.schemastore.org/resume",
"basics": {
"name": "Gabriel Alejandro López López",
"label": "Software Engineer",
"image": "https://glpzzz.is-a.dev/glpzzz.jpg",
"email": "glpz@daxslab.com",
@glpzzz
glpzzz / script.js
Last active Oct 10, 2020
Toggle amount of rows in text area.
View script.js
//short version, the one in the answer
$('thebutton').click(function(){
$('thetextarea').attr('rows', $('thetextarea').attr('rows')==1?5:1);
});
//short version, just using selectors once
$('thebutton').click(function(){
var $textArea = $('thetextarea'); //declare a variable to avoid using the same jQuery selector twice.
$textArea.attr('rows', $textArea.attr('rows')==1?5:1);
});