Skip to content

Instantly share code, notes, and snippets.

View victornoel's full-sized avatar

Victor Noël victornoel

View GitHub Profile
abstract class C {
type T
var r: T = _
}
object C {
def m[CC <: C](t: CC)(nl: CC#T) {
t.r = nl // type mismatch; found : nl.type (with underlying type CC#T) required: t.T
}
abstract class C {
type T
val r: T
}
object C {
def m(t: C): t.T = t.r
}
class Ex {
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="Truck"
targetNamespace="http://kuleuven.be/casas/scenario1/service/Truck"
xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
xmlns:tnss="http://kuleuven.be/casas/scenario1/schema/TransportRequest"
xmlns:tns="http://kuleuven.be/casas/scenario1/service/Truck">
<types>
<xsd:schema targetNamespace="http://kuleuven.be/casas/scenario1/service/Truck">
<xsd:import schemaLocation="TransportRequest.xsd"
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>scenario1</artifactId>
<groupId>be.kuleuven.casas.examples.scenario1</groupId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<groupId>be.kuleuven.casas.examples.scenario1</groupId>
<artifactId>scenario1-sa</artifactId>
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)
@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>
@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 / 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
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 / 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.