[Drupal] Create an event subscriber

Instructions I will be creating a dedicated module using Drupal Console for this event subscriber. But feel free to use your own if you already have one! (don’t forget to backup) Access the drupal root folder in command line. Generate a new module: dakwamine@debian-drupal:/var/www/html/drupal$ drupal generate:module Enter the new module name: > Test Module Enter …

Unity3D.tips[2]: Intersection point between two lines in 2D

The code /// /// Gets the coordinates of the intersection point of two lines. /// /// A point on the first line. /// Another point on the first line. /// A point on the second line. /// Another point on the second line. /// Is set to false of there are no solution. true otherwise. …

Unity3D.tips[1]: Strategies to prevent the collision when a ball rolls from a planar surface to another

Method 1: mega box collider Use a single BoxCollider for all your planes. For example, if you have multiple aligned planes, remove their Collider component (Box, Mesh, whichever they have) and on only one of the planes, add a BoxCollider and adjust its center and size values in the component’s inspector to encapsulate all the …

[Android] .hgignore pour un projet Android Studio

Je mets le contenu du fichier .hgignore que j’utilise pour mes projets sur Android Studio. Je suis parti du .gitignore de base livré avec un nouveau projet dans Android Studio et je l’ai complété en m’inspirant de plusieurs réponses sur Stack Overflow. À noter que la configuration suivante est réglée pour que le projet soit …

Petit script VB d’export de table Excel vers .txt

Vous avez besoin d’un petit script en Visual Basic pour faire un export simple d’un tableau Excel vers un fichier texte .txt ? Alors j’ai peut-être le script dont vous avez besoin ! Enthousiasmé Je ne connais pas vraiment VB, mais une lecture rapide de quelques tutoriaux m’a permis de faire ce que je cherchais comme comportement. …