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
function getTimeHM(secs: number) { | |
const m = Math.floor(secs / 60); | |
const s = secs % 60; | |
return m > 1 ? (s > 9 ? `${m}:${s}` : `${m}:0${s}`) : (s > 9 ? `0${m}:${s}` : `0${m}:0${s}`) | |
} |
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
#mysql service | |
MYSQL_ROOT_PASSWORD=root | |
MYSQL_DATABASE=rsys | |
MYSQL_USER=root | |
MYSQL_PASSWORD=root |
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
version: "3.5" | |
services: | |
# 1ere base de donnée mysql sur le port 3306 | |
latty_db-1: | |
image: mysql:8.0 | |
container_name: latty-mysql-dev-1 | |
command: --default-authentication-plugin=mysql_native_password | |
ports: |
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/home/anost/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes |
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 java.sql.Timestamp; | |
import java.sql.Types; | |
import java.util.Arrays; | |
import java.util.Date; | |
import org.springframework.jdbc.core.JdbcTemplate; | |
import org.springframework.jdbc.core.PreparedStatementCreator; | |
import org.springframework.jdbc.core.PreparedStatementCreatorFactory; | |
import org.springframework.jdbc.support.GeneratedKeyHolder; | |
import org.springframework.jdbc.support.KeyHolder; | |
import org.springframework.stereotype.Repository; |
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
0 info it worked if it ends with ok | |
1 verbose cli [ | |
1 verbose cli 'D:\\Windows\\Node\\node.exe', | |
1 verbose cli 'D:\\Windows\\Node\\node_modules\\npm\\bin\\npm-cli.js', | |
1 verbose cli 'run', | |
1 verbose cli 'build-pack-and-installer-win64' | |
1 verbose cli ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 verbose run-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
<?xml version="1.0" encoding="utf-8" ?> | |
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | |
xmlns:owl="http://www.w3.org/2002/07/owl#" | |
xmlns:dc="http://purl.org/dc/terms/" | |
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" | |
xmlns:foaf="http://xmlns.com/foaf/0.1/" | |
xmlns:ns0="http://purl.org/vocab/vann/" | |
xmlns:ns1="http://www.w3.org/2003/06/sw-vocab-status/ns#" | |
xmlns:schema="http://schema.org/"> |
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
# Copyright 2017-2019 W3C Linked Building Data Community Group. | |
# | |
# This work is licensed under a Creative Commons Attribution License. | |
# This copyright applies to the BOT Vocabulary Specification and | |
# accompanying documentation in RDF. Regarding underlying technology, | |
# BOT uses W3C's RDF technology, an open Web standard that can be freely | |
# used by anyone. | |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix owl: <http://www.w3.org/2002/07/owl#> . |
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
package fr.amu.ter_genrest.utils; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module; | |
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; | |
import com.fasterxml.jackson.module.paramnames.ParameterNamesModule; | |
import javax.servlet.ServletContextEvent; | |
import javax.servlet.ServletContextListener; |
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
def impossible(n): | |
return n == 1 or n == 3 | |
def spare(m): | |
if impossible(m): | |
return ((0, 0, 0)) | |
# Compute the bills of 10 | |
pn10 = int(m / 10) |
NewerOlder