This file contains 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
// A non-blocking everyday NeoPixel strip test program. | |
// NEOPIXEL BEST PRACTICES for most reliable operation: | |
// - Add 1000 uF CAPACITOR between NeoPixel strip's + and - connections. | |
// - MINIMIZE WIRING LENGTH between microcontroller board and first pixel. | |
// - NeoPixel strip's DATA-IN should pass through a 300-500 OHM RESISTOR. | |
// - AVOID connecting NeoPixels on a LIVE CIRCUIT. If you must, ALWAYS | |
// connect GROUND (-) first, then +, then data. | |
// - When using a 3.3V microcontroller with a 5V-powered NeoPixel strip, | |
// a LOGIC-LEVEL CONVERTER on the data line is STRONGLY RECOMMENDED. |
This file contains 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
package aoc2023; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.util.Map; | |
public class Day1 { | |
public static void main(String[] args) throws Exception |
This file contains 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
package esperimentini; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
public class AOC2 { | |
public static String FIRST = "ABC"; | |
public static String SECOND = "XYZ"; | |
This file contains 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
package esperimentini; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.util.Comparator; | |
import java.util.stream.Stream; | |
public class AOC1 { | |
public static void main(String[] args) throws Exception { |
This file contains 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
{ | |
firstname: "STEFANO", | |
lastname: "CHIAPPONE", | |
birthDate: "1994-12-20T00:00:00", | |
did: "26579664", | |
isValid: false | |
} |
This file contains 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
package aoc; | |
public class FuncRecursion { | |
static interface Func { | |
int apply(); | |
} | |
static class ReturnZero implements Func { | |
@Override |
This file contains 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
package aoc; | |
import java.awt.Point; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.Arrays; | |
import java.util.stream.Stream; | |
public class Day11 { |
This file contains 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
package aoc; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.HashMap; | |
import java.util.Map; | |
public class Day10 { |
This file contains 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
package aoc; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; |
This file contains 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
package aoc; | |
import java.awt.Point; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; | |
public class Day3 { |
NewerOlder