Skip to content

Instantly share code, notes, and snippets.

View John-Dormevil's full-sized avatar
🎶
Working

Dormevil John-Dormevil

🎶
Working
View GitHub Profile
@John-Dormevil
John-Dormevil / Personne.js
Last active May 19, 2017 12:12
Basic way to create object in JS (private/public encapsulation simulation)
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}`);
}
<?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"];
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",

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

  • React Native
  • Framework 7
  • Ionic

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

// 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";
};
@John-Dormevil
John-Dormevil / HowSyncFork.md
Last active November 13, 2017 11:10
Sync a fork with original repo
@John-Dormevil
John-Dormevil / AdduserAlpine.sh
Last active February 21, 2018 10:40
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
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 / gist:340bc14b64bed8aaf3b0465a4d70deae
Last active March 21, 2021 05:00 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

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: