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 |
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
const GoogleAuth = require('google-auth-library') | |
const OAuth2Client = GoogleAuth.OAuth2Client | |
const google = require('googleapis') | |
const clientId = '<YOUR_CLIENT_ID>' | |
const clientSecret = '<YOUR_CLIENT_SECRET>' | |
const redirectUri = '<Your URI Callback>' | |
const oauth2Client = new OAuth2Client(clientId, clientSecret, redirectUri) | |
// your oauth method, see documentation |
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
#!/bin/bash | |
# WARNING ! THIS WAS WRITTEN A LONG TIME AGO (2018), IT MAY NOT BE RELEVANT ANYMORE | |
sudo apt-get install vnc4server ubuntu-desktop | |
sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal |
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 { |
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> |
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); |
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' | |
}, |
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') |
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" |
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 |
NewerOlder