Skip to content

Instantly share code, notes, and snippets.

from datetime import datetime
from datetime import timedelta
import random
def calculate(days, death, special_days):
for i in range(365*death):
if i%365 == 0:
print("")
if i in special_days:
print(special_days[i], end='')
from datetime import datetime
class Decomposer:
def __init__(self, binary, default_cursor):
self.__cursor = 0
self.dico = {}
self.__binary = binary
self.__cursor2 = default_cursor
@LeRoiDesKiwis
LeRoiDesKiwis / Main.java
Created July 1, 2019 15:53
Gist for compressing pictures
package fr.leroideskiwis.compressingimage;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.Scanner;
public class Main {
package fr.leroideskiwis.allcolors;
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
public class Main{
package fr.leroideskiwis.imageToText;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.Scanner;
public class Main {
package fr.leroideskiwis.qcm;
import java.util.Scanner;
public class Main {
private Qcm qcm;
private Scanner scanner = new Scanner(System.in);
public Main(){
package fr.leroideskiwis.imagedecutting;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
@LeRoiDesKiwis
LeRoiDesKiwis / Main.java
Created May 12, 2019 15:26
Programme pour découper une image
package fr.leroideskiwis.gifcreator;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.net.URI;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
package fr.leroideskiwis.client;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;