View Dockerfile
This file contains 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
FROM maven:3.6.3-openjdk-16-slim | |
WORKDIR /app | |
COPY . /app | |
RUN mvn clean package | |
# copy the packaged jar file into our docker image | |
RUN cp target/*-SNAPSHOT.jar /app/app.jar |
View regex_tester.html
This file contains 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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
#entree { | |
width: 100%; | |
height: 300px; | |
} | |
#regex { |
View magie.vue
This file contains 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
<template> | |
<div class="hello"> | |
<button class="dropdown-printer" v-on:click="showTrucs">click me! </button> | |
<div ref="dropdown" id="dropdown" v-show="show" :style="styleDropdown()"> | |
<button v-for="item of items" :key="item">{{ item }}</button> | |
</div> | |
</div> | |
</template> | |
<script> |
View utils.c
This file contains 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 <unistd.h> | |
#include <execinfo.h> | |
void print_backtrace () { | |
void *array[10]; | |
size_t size; | |
// get void*'s for all entries on the stack | |
size = backtrace(array, 10); |
View access-rights.definition.js
This file contains 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
/** eslint camelcase: 0 */ | |
const accessRightsDefinition = { | |
exercise: { | |
view: 'exercise.view', | |
do: 'exercise.do' | |
}, | |
session: { | |
view: 'session.view', | |
do: 'session.do' | |
}, |
View server.js
This file contains 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
/** | |
* | |
* entrez la commande suivante: | |
* npm install --save express body-parser morgan cors | |
*/ | |
const express = require('express') | |
const bodyParser = require('body-parser') | |
const morgan = require('morgan') | |
const cors = require('cors') |
View ToDo.vue
This file contains 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
<template> | |
<v-container> | |
<v-layout text-center wrap> | |
<v-form v-model="valid"> | |
<v-container> | |
<v-row> | |
<v-col cols="12" md="4"> | |
<v-text-field | |
v-model="title" | |
label="Title" |
View homework.py
This file contains 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
from bs4 import BeautifulSoup | |
import requests | |
import regex | |
def get(url): | |
mycontent = requests.get(url) | |
soup = BeautifulSoup(mycontent.text, "html.parser") | |
return soup | |
# the links we want to visit |
View capture_output.py
This file contains 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 sys | |
from contextlib import contextmanager | |
from io import StringIO | |
@contextmanager | |
def captured_output(): | |
new_out = StringIO() | |
old_out = sys.stdout | |
try: | |
sys.stdout = new_out |
View caroussel.html
This file contains 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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
header { | |
display: flex; | |
width: 1000px; | |
height: 200px; | |
border: 1px solid red; | |
} |
NewerOlder