This file contains hidden or 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
FROM clickable/ubuntu-sdk:16.04-amd64 | |
# Install lots of packages | |
RUN apt-get update && apt-get install -y libxext-dev libxrender-dev libxtst-dev wget | |
# Download script | |
RUN wget http://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run | |
RUN chmod +x ./qt-unified-linux-x64-online.run | |
# Run installer as entrypoint |
This file contains hidden or 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
final ImageView animationView = (ImageView) findViewById(R.id.animationView); | |
final AnimatedVectorDrawableCompat avd = (AnimatedVectorDrawableCompat) animationView.getDrawable(); | |
avd.registerAnimationCallback(new Animatable2Compat.AnimationCallback() { | |
@Override | |
public void onAnimationEnd(Drawable drawable) { | |
animationView.post(new Runnable() { | |
@Override | |
public void run() { | |
avd.start(); |
This file contains hidden or 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
#on device | |
weston --backend=rdp-backend.so --rdp-tls-cert=/home/ldub/c | |
erts/oneplus2.crt --rdp-tls-key=/home/ldub/certs/oneplus2.key --socket=wayland-1 | |
#on computer | |
xfreerdp /v:172.16.42.1 /sec:tls /size:50% |
This file contains hidden or 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
#!/bin/bash | |
SCREEN_WIDTH=384 | |
SCREEN_HEIGHT=640 | |
PORT=1234 | |
FORMAT=rgba | |
if [[ $# -eq 0 ]] ; then | |
echo 'usage: ./mircast UT_IP_ADDRESS , e.g: ./mircast 192.168.1.68' | |
exit 1 |
This file contains hidden or 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
//convertir une date exprimée en chaine de caractère en java.util.date: | |
DateFormat df = new SimpleDateFormat("MM/dd/yyyy"); | |
Date datedeb = df.parse("02/01/2017"); | |
Date datefin = df.parse("09/11/2017"); | |
//afficher une date suivant le modèle mm/dd/yyyy | |
String dt1 = df.format(datedeb); | |
System.out.println(dt1); | |
This file contains hidden or 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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package com.ldub.gereville; | |
/** | |
* | |
* @author lionel |
This file contains hidden or 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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package com.ldub.testouille; | |
import java.util.Scanner; | |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>TODO app</title> | |
<style media="screen"> | |
li.done{ | |
text-decoration: line-through; | |
} | |
</style> |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>creation de balise p par programmation</title> | |
<style media="screen"> | |
p { | |
background-color: green; | |
} |
This file contains hidden or 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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package org.lduboeuf.todo; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStream; |