Source : Using jQuery to access an element from the parent frame from an iFrame
jQuery('div#hello', window.parent.document).hide();
Le bloc-notes professionnel d'un développeur front-end senior
Source : Using jQuery to access an element from the parent frame from an iFrame
jQuery('div#hello', window.parent.document).hide();
Source : How to get a list of MySQL user accounts
SELECT User FROM mysql.user;
Source : http://www.tux-planet.fr/mysql-connaitre-la-taille-dune-base-de-donnees/
SELECT table_schema, round(sum(data_length+index_length)/1024/1024,4) AS "Size (MB)"
FROM information_schema.tables
GROUP BY table_schema;
Sources :
1 |
sudo su |
1 |
cp fichierbidon fichiercopié |
Le premier paramètre est le nom du fichier à copier, le second le nom de la copie du fichier à créer. En faisant cela, on aura donc deux fichiers identiques dans le même répertoire : fichierbidon et fichiercopié.
1 |
vi /etc/hosts |
Source : Chmod: Commande Chmod Linux / Unix
Pour un fichier :
1 |
chmod 740 /votre/fichier |
Pour un répertoire (majuscule à respecter) :
1 |
chmod -R 740 /votre/répertoire |
Source : Time Synchronisation with NTP
1 |
ntpdate ntp.ubuntu.com |
1 |
ls [touche "echap"]* |
A noter que si on lance la même commande sans espace entre la commande (dans notre exemple ls
) et la [touche "echap"]*
, on obtient une liste des commandes qui commencent par ls
:
1 |
ls[touche "echap"]* |
ATTENTION: sous IE10, IE11, dans le cadre d’une mise en page Responsive et si vous utilisez des images, il est possible que le redimensionnement homothétique de celles-ci soit mal géré. Vous pouvez ajouter ce style pour corriger le problème :
1 |
.votre-tableau .votre-cellule img { width: 99.99%; } |
Source : Bootstrap: Vertical align into a Grid v2 – CodePen
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
.row-table{ display: table !important; width: 100%; /*width: 102.26%;*/ /*width: calc(100% + 30px);*/ } .row-table > [class*="col-"]{ float: none !important; display: table-cell !important; vertical-align: middle; } .row-table > [class*="col-"].td-top{ vertical-align: top !important; } .row-table > [class*="col-"].td-bottom{ vertical-align: bottom !important; } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
.row-table(){ display: table !important; width: 100%; > [class*="col-"]{ float: none !important; display: table-cell !important; vertical-align: middle; } /* > [class*="col-"].td-top{ vertical-align: top !important; } > [class*="col-"].td-bottom{ vertical-align: bottom !important; } */ } |