Skip to content

Instantly share code, notes, and snippets.

View ahmnouira's full-sized avatar
🏠
Working from home

Ahmed Nouira ahmnouira

🏠
Working from home
View GitHub Profile
@ahmnouira
ahmnouira / server.js
Created October 2, 2021 19:50
Node.js + Nodemailer: Sending email with Gmail
const express = require("express");
const bodyParser = require("body-parser");
const nodemailer = require("nodemailer");
const app = express();
app.use(bodyParser.json());
app.use((req, res, next) => {
res.setHeader("Access-Control-Allow-Origin", "*");
@ahmnouira
ahmnouira / draw-cards.c
Last active November 28, 2019 23:32
qwirkle-game
/*
* @author: ahmnouira
* @find me: https://github.com/ahmnouira
*/
#include <stdio.h>
typedef struct
{
char *name;
@ahmnouira
ahmnouira / db.js
Created November 7, 2019 16:28
test code
const mongoose = require('mongoose');
mongoose.connect('mongodb://localhost:3333/test_stagesIT', { useNewUrlParser: true, useUnifiedTopology: true } );
mongoose.connection.on('connect', function(){
console.log('** mongoose connect *** ')
})
@ahmnouira
ahmnouira / PY0101EN-2-4-Dictionaries.ipynb
Created November 7, 2019 16:26
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ahmnouira
ahmnouira / PY0101EN-2-3-Sets.ipynb
Created November 7, 2019 16:25
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ahmnouira
ahmnouira / PY0101EN-2-2-Lists.ipynb
Created November 7, 2019 16:25
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ahmnouira
ahmnouira / PY0101EN-2-1-Tuples.ipynb
Created November 7, 2019 16:24
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.