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
//DEPS dev.langchain4j:langchain4j:0.23.0 | |
//DEPS dev.langchain4j:langchain4j-open-ai:0.23.0 | |
//DEPS dev.langchain4j:langchain4j-embeddings-all-minilm-l6-v2:0.23.0 | |
//DEPS commons-io:commons-io:2.14.0 | |
//DEPS org.apache.commons:commons-text:1.10.0 | |
//DEPS org.jsoup:jsoup:1.16.1 | |
//DEPS org.slf4j:slf4j-simple:2.0.9 | |
package dev.indus340; |
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
# Transfer with Thonny | |
from machine import Pin, Timer | |
import utime | |
# Initialize LEDs | |
led1_r = Pin(2, Pin.OUT) | |
led1_y = Pin(3, Pin.OUT) | |
led1_g = Pin(4, Pin.OUT) | |
led2_r = Pin(6, Pin.OUT) | |
led2_y = Pin(7, Pin.OUT) |
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
import sys | |
import mcpi.block as block | |
from mcpi.minecraft import Minecraft | |
from math import * | |
# Data structure representing icon as a 2D grid | |
# Copy the generated array from the BlockCraft chat | |
image = [[7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7], | |
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7], | |
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7], |
OlderNewer