Skip to content

Instantly share code, notes, and snippets.

View manuelcanga's full-sized avatar
🎯
Focusing

Manuel Canga manuelcanga

🎯
Focusing
View GitHub Profile
@manuelcanga
manuelcanga / info.md
Created January 7, 2022 20:39
Elemento :before o :after no se visualiza

Si has añadido una regla :before o :after y parece que no toma los estilos es porque para que estos se necesita el atributo content aunque sea vacío. Es decir:

div.miclase:before {

  content: '';
}
@manuelcanga
manuelcanga / backup.sh
Created January 7, 2022 21:48
Create app backup
#!/bin/sh
#set -x
INSTANCIA=$1
TODAY=$(date -I)
### ------------------------------------------------------------
@manuelcanga
manuelcanga / scripts.js
Last active February 26, 2022 08:26
Upload html5 images to a tree
(function($) {
jQuery.fn.html5_upload = function(options) {
var available_events = ['onStart', 'onStartOne', 'onProgress', 'onFinishOne', 'onFinish', 'onError'];
var options = jQuery.extend({
onStart: function(event, total) {
@manuelcanga
manuelcanga / app_gettext.sh
Last active February 26, 2022 08:28
Searching and creating gettext entries
APP_ROOT=$1
if [ $# == 2 ]
then
echo "error: app path?"
fi