Skip to content

Instantly share code, notes, and snippets.

View Musinux's full-sized avatar

Louis Cherel Musinux

View GitHub Profile
Musinux / Dockerfile
Created January 19, 2021 13:35
Dockerfile for building a java application
FROM maven:3.6.3-openjdk-16-slim
COPY . /app
RUN mvn clean package
# copy the packaged jar file into our docker image
RUN cp target/*-SNAPSHOT.jar /app/app.jar
<meta charset="utf-8">
#entree {
width: 100%;
height: 300px;
#regex {
<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>
#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: ''
session: {
view: 'session.view',
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')
<v-layout text-center wrap>
<v-form v-model="valid">
<v-col cols="12" md="4">
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
def captured_output():
new_out = StringIO()
old_out = sys.stdout
sys.stdout = new_out
<meta charset="utf-8">
header {
display: flex;
width: 1000px;
height: 200px;
border: 1px solid red;