Skip to content

Instantly share code, notes, and snippets.

View PyvesB's full-sized avatar

Pierre-Yves Bigourdan PyvesB

View GitHub Profile
@PyvesB
PyvesB / manifest.mpd
Last active August 16, 2021 09:13
Example of DASH manifest, which tells you how to compute the chunk paths
<?xml version="1.0" encoding="utf-8"?>
<MPD
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:mpeg:dash:schema:mpd:2011"
type="dynamic"
availabilityStartTime="1970-01-01T00:01:00Z"
publishTime="2020-11-09T11:21:45.084104Z"
minimumUpdatePeriod="PT8H"
timeShiftBufferDepth="PT2H"
maxSegmentDuration="PT4S"
import java.text.ParseException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.function.client.WebClient;
import org.springframework.web.reactive.function.client.WebClientResponseException.Unauthorized;

Keybase proof

I hereby claim:

  • I am pyvesb on github.
  • I am pyves (https://keybase.io/pyves) on keybase.
  • I have a public key ASCMoq2Y2i2VKgjs0BbAwkVB6mK65wXX6I_2M0J33RMZiAo

To claim this, I am signing this object:

@PyvesB
PyvesB / query-string-builder.js
Created February 18, 2019 18:53
Alternative Shields implementation
import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import humanizeString from 'humanize-string'
import { stringify as stringifyQueryString } from 'query-string'
import { advertisedStyles } from '../../../supported-features.json'
import { noAutocorrect, StyledInput } from '../common'
import {
BuilderContainer,
BuilderLabel,
@PyvesB
PyvesB / ReplacementsBenchmark.java
Created September 11, 2018 17:48
JMH example for string manipulations
package io.github.pyvesb.jmh;
import java.util.concurrent.TimeUnit;
import java.util.regex.Pattern;
import org.apache.commons.lang3.RandomStringUtils;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Fork;
import org.openjdk.jmh.annotations.Measurement;
@PyvesB
PyvesB / pom.xml
Last active February 24, 2018 09:09
pom.xml for Minecraft 1.7.9/1.7.10
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.hm.achievement</groupId>
<artifactId>AdvancedAchievements</artifactId>
<version>5.6.5</version>
<url>https://github.com/PyvesB/AdvancedAchievements</url>
<name>AdvancedAchievements</name>
<description>A Minecraft plugin that brings unique and challenging achievements on your server! Books, GUI, rankings, rewards, effects and more!</description>
<issueManagement>