Skip to content

Instantly share code, notes, and snippets.

This application is intended for the private use of its developer. Any unauthorized users who connect to this service should have no expectation of privacy or protection of their data.
@Skyost
Skyost / README.md
Last active June 21, 2023 11:22
Minimal reproducible example for https://github.com/flame-engine/flame/issues/2574. Note that this code doesn't pretend to be clean.

Sadly, Github Gist doesn't support subdirectories. Here's the structure :

test_flame/
├── assets/
│   ├── images/
│   │   └── tiles.png
│   └── tiles/
│       ├── level.tmx
│ └── tiles.tsx
@Skyost
Skyost / Neiox.java
Last active July 9, 2017 17:15
Petit programme sympa pour Neiox.
public class Neiox extends JFrame {
private static final long serialVersionUID = 1L;
public static final String TITLE = "%d nombre(s) présent(s)";
public static final int MIN = 0;
public static final int MAX = 9999;
private List<String> data;
public Neiox() throws IOException, URISyntaxException {
@Skyost
Skyost / BitbucketUpdater.java
Last active June 20, 2017 22:26
An update checker based based on my Github updater.
package fr.skyost.bitbucket;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.util.regex.Pattern;
@Skyost
Skyost / AskRating.java
Last active June 10, 2017 12:39
Demande une note pour le serveur aux joueurs lorsqu'ils se connectent.
package fr.skyost.rating;
import org.bukkit.Bukkit;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.plugin.java.JavaPlugin;
public class AskRating extends JavaPlugin implements Listener {
@Skyost
Skyost / room.xml
Last active August 1, 2016 12:21
Exemples de fichiers de configuration dans Projet BBQ.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<configuration>
<name>Salle test</name>
<computers>
<computer>
<name>PC 1</name>
<ip>192.168.0.1</ip>
<port>4444</port>
</computer>
<computer>
@Skyost
Skyost / KillEleve.java
Last active May 25, 2016 16:33
Classe permettant de tuer le processus de ProjetBBQ Élève.
package fr.isn.bqq.killeleve;
import sun.jvmstat.monitor.MonitoredHost;
import sun.jvmstat.monitor.MonitoredVm;
import sun.jvmstat.monitor.MonitoredVmUtil;
import sun.jvmstat.monitor.VmIdentifier;
public class KillEleve {
public static final void main(final String[] args) {
@Skyost
Skyost / WebcamProject.java
Created January 21, 2016 09:47
Project using webcam-capture (webcam-capture.sarxos.pl).
package fr.hdelaunay.webcam;
import javax.imageio.ImageIO;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import com.github.sarxos.webcam.Webcam;
import com.github.sarxos.webcam.WebcamPanel;
import com.github.sarxos.webcam.ds.ipcam.IpCamAuth;
import com.github.sarxos.webcam.ds.ipcam.IpCamDeviceRegistry;
@Skyost
Skyost / InfiniteLoop.agg.java
Last active October 28, 2015 23:17
InfiniteLoop.agg → Java, JS and PHP
package xyz.algogo;
import java.util.Scanner;
/**
* <h1>Infinite Loop</h1>
* <p>This is a beta feature : there are still remaining some bugs !
* <br><b>PS :</b> Sorry for indentation !</p>
*
* @author Skyost.
@Skyost
Skyost / GithubUpdater.java
Last active June 20, 2017 22:26
An update checker based on Github.
/**
* An update checker based on Github.
* <br>The file "version.update" must contain a valid version.
*
* @author Skyost.
* @see <a href="https://gist.github.com/Skyost/e3389e6f40642785fccc">The gist's link</a> or the <a href="http://paste.skyost.eu/skyost-5554ebf124a9c">paste's link</a>.
*/
public class GithubUpdater extends Thread {