Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View HamHamFonFon's full-sized avatar

Stéphane Méaudre HamHamFonFon

View GitHub Profile
final class Dog extends Animal
{
private readonly string $noise = 'barks';
protected fonction makeNoise(): string
{
return $this->noise;
}
}
@HamHamFonFon
HamHamFonFon / automaticDragAndDrop.js
Last active July 13, 2023 13:17
Form ezform to drag and drop specific fields
/**
* Source: https://gist.github.com/leesaxby/fabc59c82569a225f8d833b5924e23c6
* @param sourceNode
* @param destinationNode
*/
const automaticDragAndDrop = (sourceNode, destinationNode) => {
const DRAG_OVER = 'dragover';
const DRAG_END = 'dragend';
const DRAG_START = 'dragstart';
const DROP = 'drop';
#syntax=docker/dockerfile:1.4
ARG PHP_VERSION=8.1
ARG NODE_VERSION=14
#######################
# Node
#######################
FROM node:${NODE_VERSION}-alpine AS app_node
WORKDIR /var/www/deep-space-objects
@HamHamFonFon
HamHamFonFon / Example.js
Last active April 8, 2021 13:05
Routing.js
import Routing from './path/to/routing';
;(function() {
const init = () => {
let myRoute = Routing.generate('my_route');
console.log(myRoute);
};
document.addEventListener("DOMContentLoaded", () => {
init();

Mettre en production un projet Symfony 4 sur un VPS OVH

VPS OVH | Ubuntu 16.04.3 LTS | LAMP | SYMFONY 4

Pré-requis

  • Votre projet doit être versionné avec git et hébergé (Github, Bitbucket...).
  • Vous devez avoir acheté un VPS et un nom de domaine.
  • Vous devez également générer une clé SSH sur votre ordinateur. (explications ci-dessous)

Création et ajout de la clé SSH au profil OVH

@HamHamFonFon
HamHamFonFon / openlayers.js
Last active April 14, 2017 10:16
Exemple OL
var openlayers = require('openlayers');
var moduleCarto = (function(ol) {
var initMap = function()
{
// Couche Open Street map
var layerOsm = new ol.layer.Tile({
title: 'Open Street Map',
visible: true,