Skip to content

Instantly share code, notes, and snippets.

View davorpa's full-sized avatar
🧑‍💻
Learn, Code, Enjoy, Repeat

David Ordás davorpa

🧑‍💻
Learn, Code, Enjoy, Repeat
View GitHub Profile
@domingogallardo
domingogallardo / README.md
Created July 25, 2017 08:05 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@davorpa
davorpa / braingames-with-emojis-equipos-ciclistas.md
Last active April 9, 2020 19:23
BRAINGAMES: Equipos ciclistas usando emoticonos

Braingames: Equipos ciclistas usando emoticonos

Braingames + emojis

Te propongo un juego muy didáctico con el que podrás ejercitar tu mente, más concretamente tu hemisferio cerebral izquierdo, y así prevenir el déficit cognitivo.

¡¡Dale al coco!! Que tanto meme te lo está dejando frito. xD

Es muy simple. Se trata de adivinar equipos ciclistas usando emoticonos. ¿Te apuntas al reto?

@davorpa
davorpa / braingames-with-emojis-refranes.md
Last active January 28, 2021 00:01
BRAINGAMES: Refranero español usando emoticonos

Braingames: Refranero español usando emoticonos

Braingames + emojis

Te propongo un juego muy didáctico con el que podrás ejercitar tu mente, más concretamente tu hemisferio cerebral izquierdo, y así prevenir el déficit cognitivo.

¡¡Dale al coco!! Que tanto meme te lo está dejando frito. xD

Es muy simple. Se trata de adivinar refranes usando emoticonos. ¿Te apuntas al reto?

@davorpa
davorpa / iphone-gesture-scale-fix.js
Last active September 11, 2021 06:08
A easy script to put at your HTML body end to fix scale gestures on iOS devices
!(function(document, undefined) { // IIFE::start
if (!navigator.userAgent.match(/iPhone/i)) return; // only for iPhone
var metas = document.getElementsByTagName("meta"),
NORMAL_SCALE = 1.0,
MIN_SCALE = 0.25,
MAX_SCALE = 1.6;
initialize();
// document.addEventListener("gesturestart", onGestureStart, false);
@JJ
JJ / adm.md
Last active September 26, 2021 16:39

Desde el punto de vista del estudiante (y también del profesor que viene más tarde) hay un tipo de asignaturas que vamos a denominar AdM (que evidentemente significa Asignaturas diseñadas Malamente) que tienen una serie de carencias, lo que causa una serie de actitudes en el estudiante. Vamos a tratar de caracterizar aquí estas diferencias

AdM Asignatura no-dM
En muchos casos, el contenido o el propio concepto de la asignatura no tiene nada que ver con la realidad laboral actual Hay un esfuerzo por estar al día de esa realidad laboral y usar siempre ejemplos y conceptos cercanos a la realidad conceptual y laboral
El que juzga si algo está bien o no es el profesor Los conceptos y si están bien o mal se pueden mirar en cualquier lado
En algunos casos, "lo que quiere el profe que escriba" está en contra de las buenas prácticas aprendidas en la práctica laboral Si hay alguna mala práctica o antipatrón, se puede solicitar una corrección y nunca resulta en mala nota
@domingogallardo
domingogallardo / aprobar-pull-request-bitbucket.adoc
Last active January 17, 2022 11:01
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

@davorpa
davorpa / export-github-repo-labels.js
Last active May 6, 2023 18:36
Export-import Github repo labels
// 1. Go on you labels page:
// eg.: https://github.com/EbookFoundation/free-programming-books/labels
//
// 2. Paste this script in your console / save as browser bookmarklet, and then execute it
// 3. Copy the output / download files and now you can import it using https://github.com/popomore/github-labels !
//
// How to bookmark: https://gist.github.com/caseywatts/c0cec1f89ccdb8b469b1
(function(undefined) {
@leonderijke
leonderijke / svgfixer.js
Last active May 26, 2023 11:22
Fixes references to inline SVG elements when the <base> tag is in use.
/**
* SVG Fixer
*
* Fixes references to inline SVG elements when the <base> tag is in use.
* Firefox won't display SVG icons referenced with
* `<svg><use xlink:href="#id-of-icon-def"></use></svg>` when the <base> tag is on the page.
*
* More info:
* - http://stackoverflow.com/a/18265336/796152
* - http://www.w3.org/TR/SVG/linking.html
@alopresto
alopresto / gpg_git_signing.md
Last active January 18, 2024 22:42
Steps to enable GPG signing of git commits.

If anyone is interested in setting up their system to automatically (or manually) sign their git commits with their GPG key, here are the steps:

  1. Generate and add your key to GitHub
  2. $ git config --global commit.gpgsign true ([OPTIONAL] every commit will now be signed)
  3. $ git config --global user.signingkey ABCDEF01 (where ABCDEF01 is the fingerprint of the key to use)
  4. $ git config --global alias.logs "log --show-signature" (now available as $ git logs)
  5. $ git config --global alias.cis "commit -S" (optional if global signing is false)
  6. $ echo "Some content" >> example.txt
  7. $ git add example.txt
  8. $ git cis -m "This commit is signed by a GPG key." (regular commit will work if global signing is enabled)
@un33k
un33k / sed cheatsheet
Created August 22, 2011 13:28
magic of sed -- find and replace "text" in a string or a file
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'