Skip to content

Instantly share code, notes, and snippets.

View YoussefLagtab's full-sized avatar

Youssef Lagtab YoussefLagtab

View GitHub Profile
@YoussefLagtab
YoussefLagtab / config
Created June 12, 2018 19:02
i3 config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
let campus = [
{
N: 4,
K: 1,
V: 3,
A: [
{ name: 'LikeSign', popularity: 4, visits: 0 },
{ name: 'Arcade', popularity: 3, visits: 0 },
{ name: 'SweetStop', popularity: 2, visits: 0 },
{ name: 'SwagStore', popularity: 1, visits: 0 }
@YoussefLagtab
YoussefLagtab / bd.js
Created July 18, 2018 13:39 — forked from yzemmouri/bd.js
bd
import SimpleSchema from 'simpl-schema'
let EtudiantSchema = new SimpleSchema({
apogee: !String,
cne: !String,
cin: !String,
nom: !String,
prenom: !String,
dateNaiss: !Date,
nationalité: !String,
const net = require('net')
const socket = net.Socket
const HOST = "vortex.labs.overthewire.org"
const PORT = 5842
const options = {
readable: true,
writable: true
}
#!/bin/bash
#**************************************************************************************
# Functions
usage() {
cat << STOP
Name: $0
Description: User Infos
const input = [2, 1, 2]
const [n] = input
function isprime(nbr)
{
if (nbr < 2)
return (0)
for (let i = 2; i <= nbr / 2; i++)
if (nbr % i == 0)
return (0)

Introduction

cloud computing services

  • compute power: VMS, containers and serverless
  • storage: database...
  • networking.
  • analytics.

Benefits of cloud computing

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef long l;
typedef unsigned long ul;
typedef double d;
typedef long double ld;
#define rep(i,n) for (int i = 0; i < n; ++i)
#define rrep(i,n) for (int i = n - 1; i >= 0; --i)
@YoussefLagtab
YoussefLagtab / VF
Last active July 29, 2020 08:45
Filter
category: ObjectID
culture: ObjectID
variety: ObjectID
packaging: enum packaging
harvestStatus: enum harvest status
seedType: enum seed type
get /admin/posts/:id/ get single post
patch /admin/posts/:id/status
body {
status: status enum
}
get /admin/posts/ get all posts filtered
get /admin/posts/count get total posts filtered