Skip to content

Instantly share code, notes, and snippets.

View Musinux's full-sized avatar

Louis Cherel Musinux

View GitHub Profile
@Musinux
Musinux / Dockerfile
Created January 19, 2021 13:35
Dockerfile for building a java application
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
<html>
<head>
<meta charset="utf-8">
<style>
#entree {
width: 100%;
height: 300px;
}
#regex {
<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>
#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);
/** eslint camelcase: 0 */
const accessRightsDefinition = {
exercise: {
view: 'exercise.view',
do: 'exercise.do'
},
session: {
view: 'session.view',
do: 'session.do'
},
/**
*
* 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')
<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"
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
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
<html>
<head>
<meta charset="utf-8">
<style>
header {
display: flex;
width: 1000px;
height: 200px;
border: 1px solid red;
}