Skip to content

Instantly share code, notes, and snippets.

var number;
var chaineFinale;
var numberList = {
0: 'zéro',
1: 'un',
2: 'deux',
3: 'trois',
4: 'quatre',
5: 'cinq',
6: 'six',
@Pyeroh
Pyeroh / egps.lua
Created January 5, 2017 10:02 — forked from SquidLord/egps.lua
egps: A* pathfinding library for Minecraft ComputerCraft turtles.
-- This library provide high level turtle movement functions.
--
-- Before being able to use them, you should start the GPS with egps.startGPS()
-- then get your current location with egps.setLocationFromGPS().
-- egps.forward(), egps.back(), egps.up(), egps.down(), egps.turnLeft(), egps.turnRight()
-- replace the standard turtle functions.
-- If you need to use the standard functions, you
-- should call egps.setLocationFromGPS() again before using any egps functions.
-- Gist at: https://gist.github.com/SquidLord/4741746
@Pyeroh
Pyeroh / BrainLuck.java
Created March 3, 2017 03:17
Brainfuck interpreter
public class BrainLuck {
private static Map<String, Consumer<Data>> operations = new HashMap<>();
static {
operations.put(">", Data::incrementPointer);
operations.put("<", Data::decrementPointer);
operations.put("+", Data::increment);
operations.put("-", Data::decrement);
operations.put(".", Data::output);
}
@Pyeroh
Pyeroh / Paintfuck.java
Created December 7, 2018 03:27
Paintfuck.java
import java.util.Arrays;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
public class Paintfuck {
public static String interpreter(String code, int iterations, int width, int height) {
System.out.println(code);
System.out.println(iterations);
System.out.printf("%s %s%n", width, height);
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.util.Arrays;
import java.util.Deque;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Optional;
import java.time.LocalDate;
import java.time.Month;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
{"version":1,"resource":"file:///home/quentin/Documents/CNAM/test.kts","entries":[{"id":"daXv.kts","timestamp":1651993124263},{"id":"lSiS.kts","timestamp":1651993997830},{"id":"6p6Z.kts","timestamp":1651994055016},{"id":"GC2l.kts","timestamp":1651994108985},{"id":"7wy5.kts","timestamp":1651994126744},{"id":"12AZ.kts","timestamp":1651994169102},{"id":"G0nY.kts","timestamp":1651994220180},{"id":"yKUR.kts","timestamp":1651994277597},{"id":"MQ9a.kts","timestamp":1651994359396},{"id":"Msjb.kts","timestamp":1651994614908}]}
"""Ce fichier définit quelques données, sous la forme de variables,
utiles au programme pendu"""
WORDS = [
'ABEILLE',
'ABRICOT',
'ABSENT',
'ABÎMÉ',
'ACCIDENT',
'ACHETER',
@Pyeroh
Pyeroh / cTurtle.lua
Last active October 24, 2021 20:49
cTurtle
assert(turtle,"This API may only be used on turtles!")
local ver = 2.5
local turtleOS = turtle.inspect and 1.64 or fs.getDir and 1.63 or turtle.equipRight and 1.6 or peripheral.getNames and 1.51
local tFile = {
--file path table
["cTurtle"] = "cTurtle"
}
tFile.directory = "/"..tFile.cTurtle.."Files"
tFile.data = tFile.directory.."/data"
tFile.restarted = tFile.directory.."/restarted"
MultiMC version: 0.6.13-2517
Launched instance in online mode
Authentication server is online
authserver.mojang.com resolves to:
[18.67.103.68]
session.minecraft.net resolves to: