Skip to content

Instantly share code, notes, and snippets.

Avatar
🎶
Working

Dormevil John-Dormevil

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

People

: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
John-Dormevil / AdduserAlpine.sh
Last active Feb 21, 2018
Add user [builder] in alpine docker
View AdduserAlpine.sh
#!/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
John-Dormevil / HowSyncFork.md
Last active Nov 13, 2017
Sync a fork with original repo
View HowSyncFork.md
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";
};
View Hello.md

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.


Documents

View ListFramework.md

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

  • React Native
  • Framework 7
  • Ionic
View ajaxJquery.js
function saveDraft() {
$.ajax({
method: "POST",
url: "https://172.16.145.102/cra35dev/cra35/astreinteAjaxHandler.php",
dataType: "json",
beforeSend: function(){
$('.show-result').html("Tentative de sauvegarde des entrées en cours...")
}(),
data: {
operation: "save",
View Ajax.php
<?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
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}`);
}