Skip to content

Instantly share code, notes, and snippets.

Victor Noël victornoel

Block or report user

Report or block victornoel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View onnx.py
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
View onnx.py
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
View yaml language server logs
[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
View yaml language server logs
[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"
}
}
View async-profiling.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View EmbeddedDbBugTest.java
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 Oct 17, 2016
mpv: subtitles drag&drop does not work under Wayland
View output.txt
[ 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 Oct 5, 2016
Buggy git commit message
View COMMIT_EDITMSG
# 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 Jan 6, 2016
Simple multi-module project
View pom.xml
<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>
View gist:1253763
File "lib/subliminal/subliminal.py", line 304, in run
result = plugin.list(task.filepath, task.languages)
File "lib/subliminal/plugins/Addic7ed.py", line 89, in list
return self.query(guess['series'], guess['season'], guess['episodeNumber'], release_group, filepath, languages)
File "lib/subliminal/plugins/Addic7ed.py", line 97, in query
page = urllib2.urlopen(req, timeout=self.timeout)
File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.6/urllib2.py", line 391, in open
response = self._open(req, data)
You can’t perform that action at this time.