Skip to content

Instantly share code, notes, and snippets.

View elgamine-dev's full-sized avatar

Amine EL G elgamine-dev

  • Toulouse, France
View GitHub Profile
<html lang="fr-FR" prefix="og: http://ogp.me/ns#">
<title>@yield('title')YOAST SEO : GUIDE + Tuto vidéo pour RÉFÉRENCER WordPress</title>
<meta name="description" content="Yoast SEO est LE plugin incontournable de référencement pour WordPress. Suivez le GUIDE complet 2018 et notre TUTO vidéo pour bien le configurer" />
#!/bin/bash
USERNAME=foo
sudo useradd -m ${USERNAME}
sudo usermod -aG www-data,forge ${USERNAME}
echo '${USERNAME}:${USERNAME}' | sudo chpasswd
sudo passwd -e ${USERNAME}
mkdir /home/${USERNAME}/webroot
int ledPin = 13;
char incoming;
bool checked = true;
int id = 1;
bool ledState = false;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
delay(500);
@elgamine-dev
elgamine-dev / gist:1784f2cbc0b81f21ff20a7c3062f7265
Last active November 3, 2022 22:36 — forked from garbados/gist:f82604ea639e0e47bf44
Falsehoods Programmers Believe About Gender
  1. There are two and only two genders.
  2. Okay, then there are two and only two biological genders.
  3. Gender is determined solely by biology.
  4. Okay, it’s mostly determined by biology, right?
  5. Please tell me it’s determined by DNA.
  6. Gender can be reliably determined through visual means. After all, no man would ever wear a burka.
  7. Once gender is set, it never changes.
  8. Even if the gender can change, it will only change from the one value to the other value.
  9. Only one gender can be “active” at the same time.
  10. We’re tracking gender now, so we’ve always tracked it.
@elgamine-dev
elgamine-dev / app.js
Created August 4, 2017 11:52
React - passage de props
import React from 'react';
import ReactDOM from 'react-dom';
class App extends React.Component {
constructor(){
super();
this.state = {
tasks : [
{id:1, title: "Faire la lessive"},
{id:2, title: "Manger", fait:true},

TODO List Dans un nouveau projet laravel correctement configuré (.env):

  • Créez une nouvelle migration appelée create_tasks_table pour créer une table tasks
  • Lancez la migration via artisan
  • Créez un model Task
  • Créez en suite un Controller TaskController
  • Liez l'url '/tasks' à une méthode index dans votre controller
  • affichez une première vue index.blade.php qui se trouve dans un sous-dossier 'resources/views/tasks/'
  • Listez des tâches (que vous aurez créé auparavant via phpmyadmin dans la table tasks)
<?php
class Test {
private $name = 'plop';
private $title = "eee";
public function __construct() {
$this->date = date('c');
echo $this->name;
}
<?php
// création des propriétés pour génerer la clé hmac
$this->dateTime = date("c");
$this->pbx_site = SgtmConfig::$pbx_site;
$this->pbx_rang = SgtmConfig::$pbx_rang;
$this->pbx_identifiant = SgtmConfig::$pbx_identifiant;
$this->pbx_total = intval($this->total*100);
$this->pbx_cmd = $this->reservations['reservations'][0]->codeReservationMere;
$this->pbx_porteur = $this->passengers->{1}->mail;

hello world

window.onload = function start() {
'use strict';
};
var jose = function jose() {
dataset1.forEach(function myFunction(infos) {
console.log(infos);
beauvais();
});
};