Skip to content

Instantly share code, notes, and snippets.

View victornoel's full-sized avatar

Victor Noël victornoel

View GitHub Profile
Book book = new Book(
"How to Ruin Everything: Essays",
"Watsky, George"
)
// it has multiple methods related to reviews,
// the interface is not related to books in particular,
// it's part of our domain
Review reviews = new BookReviews(book)
import os
import warnings
from typing import List, Tuple
import onnxruntime as rt
import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.compose import ColumnTransformer
from sklearn.model_selection import RandomizedSearchCV
import os
import warnings
from typing import List, Tuple
import onnxruntime as rt
import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.compose import ColumnTransformer
from sklearn.model_selection import RandomizedSearchCV
[Trace - 15:41:21] Sending request 'initialize - (0)'.
Params: {
"processId": 3486,
"rootPath": "/home/victor/a",
"rootUri": "file:///home/victor/a",
"capabilities": {
"workspace": {
"applyEdit": true,
"didChangeConfiguration": {
"dynamicRegistration": true
[Trace - 15:39:06] Sending notification 'textDocument/didOpen'.
Params: {
"textDocument": {
"uri": "file:///home/victor/a/test.yaml",
"languageId": "yaml",
"version": 1,
"text": "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n name: app\nspec:\n selector:\n matchLabels:\n app: app\n replicas: 1\n template:\n metadata:\n labels:\n app: app\n spec:\n containers:\n - name: app\n image: nginx\n volumes:\n - name: config-volume\n configMap:\n name: app-config\n---\napiVersion: v1\nkind: ConfigMap\nmetadata:\n name: app-config\ndata:\n config: some config\n"
}
}
@victornoel
victornoel / async-profiling.svg
Created March 14, 2018 08:27
problematic svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import static org.assertj.core.api.Assertions.assertThat;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import org.junit.Rule;
import org.junit.Test;
@victornoel
victornoel / output.txt
Created October 17, 2016 16:35
mpv: subtitles drag&drop does not work under Wayland
[ 0.002][v][cplayer] Command line options: '--log-file=output.txt' 'video.mkv'
[ 0.002][v][cplayer] mpv 0.20.0 (C) 2000-2016 mpv/MPlayer/mplayer2 projects
[ 0.002][v][cplayer] built on Sat Aug 27 12:41:39 CEST 2016
[ 0.002][v][cplayer] ffmpeg library versions:
[ 0.002][v][cplayer] libavutil 55.28.100
[ 0.002][v][cplayer] libavcodec 57.48.101
[ 0.002][v][cplayer] libavformat 57.41.100
[ 0.002][v][cplayer] libswscale 4.1.100
[ 0.002][v][cplayer] libavfilter 6.47.100
[ 0.002][v][cplayer] libswresample 2.1.100
@victornoel
victornoel / COMMIT_EDITMSG
Last active October 5, 2016 07:16
Buggy git commit message
# Veuillez saisir le message de validation pour vos modifications. Les lignes
# commençant par '#' seront ignorées, et un message vide abandonne la validation.
# Sur la branche branch-test
# Modifications qui seront validées :
# modifié : plugins/com.ebmwebsourcing.petals.services.filetransfer/plugin.xml
# nouveau fichier : plugins/com.ebmwebsourcing.petals.services.filetransfer/src/com/ebmwebsourcing/petals/services/filetransfer/v33/FileTransferConsumesWizard33.java
# nouveau fichier : plugins/com.ebmwebsourcing.petals.services.filetransfer/src/com/ebmwebsourcing/petals/services/filetransfer/v33/FileTransferDescription33.java
# nouveau fichier : plugins/com.ebmwebsourcing.petals.services.filetransfer/src/com/ebmwebsourcing/petals/services/filetransfer/v33/FileTransferProvidesWizard33.java
# modifié : plugins/com.ebmwebsourcing.petals.services.ftp/plugin.xml
@victornoel
victornoel / pom.xml
Created January 6, 2016 09:51
Simple multi-module project
<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>example</groupId>
<artifactId>reactor</artifactId>
<version>1.0</version>
<packaging>pom</packaging>
<modules>