Skip to content

Instantly share code, notes, and snippets.


Dormevil John-Dormevil

  • Paris
View GitHub Profile
John-Dormevil / gist:340bc14b64bed8aaf3b0465a4d70deae
Last active Mar 21, 2021 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:340bc14b64bed8aaf3b0465a4d70deae


:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
View UdpSpyer.js
var udp = require('dgram');
// --------------------creating a udp server --------------------
// creating a udp server
var server = udp.createSocket('udp4');
// emits when any error occurs
server.on('error', function(error) {
console.log('Error: ' + error);
John-Dormevil /
Last active Feb 21, 2018
Add user [builder] in alpine docker
#!/bin/sh -x
adduser -G abuild -g "Alpine Package Builder" -s /bin/sh -D builder
echo "builder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
John-Dormevil /
Last active Nov 13, 2017
Sync a fork with original repo
View exemple-node-exports-module.js
// greetings.js
// exports with module.exports and achieved the same result. If this seems confusing,
// remember that exports and module.exports reference the same object.
var exports = module.exports = {};
exports.sayHelloInEnglish = function() {
return "HELLO";

Welcome to StackEdit!

Hey! I'm your first Markdown document in StackEdit[^stackedit]. Don't delete me, I'm very helpful! I can be recovered anyway in the Utils tab of the Settings dialog.



List of differents framework to build Mobile app with CSS/HTML/JS

  • React Native
  • Framework 7
  • Ionic
View ajaxJquery.js
function saveDraft() {
method: "POST",
url: "",
dataType: "json",
beforeSend: function(){
$('.show-result').html("Tentative de sauvegarde des entrées en cours...")
data: {
operation: "save",
View Ajax.php
$a = session_id();
if(empty($a) and isset($a)){session_start();}
//Function to check if the request is an AJAX request
if (is_ajax()) {
if (isset($_POST["operation"]) && !empty($_POST["operation"])) { //Checks if action value exists
$operation = $_POST["operation"];
John-Dormevil / Personne.js
Last active May 19, 2017
Basic way to create object in JS (private/public encapsulation simulation)
View Personne.js
var Personne = function(n, f) {
//use var to declare private variable
var name = n;
var firstname = f;
//one of private methode
var private_cry = function() {
console.log(`YES I TOLD YOU!!! MY NAME IS ${name}`);