- Un dépot prévu pour le déploiement de toutes les applications (FRONT, DSL et BACK)
- Fichier de configuration pour tout les dépots (config.py pour les dépots back)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo 1 > /proc/sys/net/ipv4/ip_forward | |
iptables -F | |
iptables -t nat -F | |
iptables -t nat -X | |
iptables -X | |
for PORT in 80 22 8080 ; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CURDIR=$(git rev-parse --show-toplevel) | |
ESLINT=$CURDIR/node_modules/.bin/eslint | |
ESLINTRC=$CURDIR/node_modules/eslint-config-airbnb/.eslintrc | |
STAGED_FILES=$(git diff --name-only | grep "\.js$") | |
if [[ $STAGED_FILES = "" ]] | |
then | |
echo "[PRE-HOOK] No files to lint:(" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ToggleRun.cpp : Defines the entry point for the console application. | |
// | |
#include "stdafx.h" | |
#include <Windows.h> | |
int main() | |
{ | |
bool activated = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function prompt_virtual_env -d "Display Python virtual environment" | |
if test "$VIRTUAL_ENV" | |
prompt_segment white black (eval (echo $VIRTUAL_ENV/bin/python --version) 2>&1 | sed 's/Python /Py|/g') | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Monte Carlo - Threads exercise | |
* | |
* Compile with: gcc ./mcarlo.c -o mcarlo -lpthread -lm | |
*/ | |
#include <unistd.h> | |
#include <time.h> | |
#include <math.h> | |
#include <stdio.h> | |
#include <stdlib.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "instructions.h" | |
const t_instruction g_instructions[] = { | |
/* 3.3.1 - 8 Bits Loads */ | |
/* 1. LD nn, n */ | |
/* Description: Put value nn into n */ | |
/* Use with: */ | |
/* nn = B,C,D,E,H,L,BC,DE,HL,SP */ | |
/* n = 8 bit immediate value */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double powerx(1.0); | |
for (int i(0); i <= N; ++i) // ON VA SEPARER LA SOMME EN DEUX PUISQUE CELLE CI CONVERGE | |
{ | |
if (i%2 != 0) { | |
cos_x -= powerx / factorielle(2*i); [URL]//SI[/URL] I EST IMPAIR ON SOUSTRAIT | |
} | |
else { | |
cos_x += powerx / factorielle(2*i); // SI I EST PAIR ON ADDITIONNE | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
CODEC = "latin-1" | |
def process(lines): | |
current_dir = None | |
filepaths = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
import hashlib | |
from Crypto import Random | |
from Crypto.Cipher import AES | |
class AESCipher(object): | |
def __init__(self, key): | |
self.bs = 32 | |
self.key = hashlib.sha256(key.encode()).digest() |