Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View JarvisCraft's full-sized avatar
🏠
Working from home

Petr Portnov | PROgrm_JARvis JarvisCraft

🏠
Working from home
View GitHub Profile
@JarvisCraft
JarvisCraft / README.md
Last active July 3, 2018 18:05
QuestCraft dev-repositories

QuestCraft repo

Public repo

In order to use QuestCraft repository you should add the following to your project's pom.xml into <repositories> tag in <settings>:

<repository>
    <id>questcraft-repo</id>
    <url>http://dev.questmg.ru:8081/artifactory/public/</url>
</repository>

It will add our public repository to the list of repositories through which Maven is looking for your dependencies.

@JarvisCraft
JarvisCraft / MapUtil.java
Last active November 24, 2018 21:53
MapUtil for Java
package ru.progrm_jarvis.minecraft.fakeentitylib.util;
import lombok.AccessLevel;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.experimental.FieldDefaults;
import lombok.experimental.UtilityClass;
import java.util.ArrayList;
import java.util.Collection;
@JarvisCraft
JarvisCraft / Standard.md
Created March 28, 2019 20:05
Project April <Annotation Remote Procedure Call API>

Project April

Standard

Idea

Project April is an API invented for annotation-based approach in creating distributed services.

Terminology:

Remote procedure = Remote method = RP

Procedure (method) whose execution is delegated to a Data-provider server (most commonly, on other physical machine) via the Distributor server

Data-user( server) = DU
@JarvisCraft
JarvisCraft / Standard.md
Created March 28, 2019 20:05
Project April <Annotation Remote Procedure Call API>

Project April

Standard

Idea

Project April is an API invented for annotation-based approach in creating distributed services.

Terminology:

Remote procedure = Remote method = RP

Procedure (method) whose execution is delegated to a Data-provider server (most commonly, on other physical machine) via the Distributor server

Data-user( server) = DU
@JarvisCraft
JarvisCraft / Standard.md
Created March 28, 2019 20:05
Project April <Annotation Remote Procedure Call API>

Project April

Standard

Idea

Project April is an API invented for annotation-based approach in creating distributed services.

Terminology:

Remote procedure = Remote method = RP

Procedure (method) whose execution is delegated to a Data-provider server (most commonly, on other physical machine) via the Distributor server

Data-user( server) = DU
@JarvisCraft
JarvisCraft / Standard.md
Created March 28, 2019 20:05
Project April <Annotation Remote Procedure Call API>

Project April

Standard

Idea

Project April is an API invented for annotation-based approach in creating distributed services.

Terminology:

Remote procedure = Remote method = RP

Procedure (method) whose execution is delegated to a Data-provider server (most commonly, on other physical machine) via the Distributor server

Data-user( server) = DU
@JarvisCraft
JarvisCraft / Standard.md
Created March 28, 2019 20:05
Project April <Annotation Remote Procedure Call API>

Project April

Standard

Idea

Project April is an API invented for annotation-based approach in creating distributed services.

Terminology:

Remote procedure = Remote method = RP

Procedure (method) whose execution is delegated to a Data-provider server (most commonly, on other physical machine) via the Distributor server

Data-user( server) = DU
@JarvisCraft
JarvisCraft / Standard.md
Last active March 28, 2019 20:40
Project April <Annotation Remote Procedure Call API>

Project April

Standard

TODO

Idea

Project April is an API invented for annotation-based approach in creating distributed services.

Terminology:

Remote procedure = Remote method = RP

Procedure (method) whose execution is delegated to a Data-provider server (most commonly, on other physical machine) via the Distributor server

@JarvisCraft
JarvisCraft / vk_handler.groovy
Created May 20, 2019 22:00
CatOBot handler scripts
import com.vk.api.sdk.callback.CallbackApi
import com.vk.api.sdk.objects.messages.AudioMessage
import com.vk.api.sdk.objects.messages.Message
import groovy.transform.Canonical
import groovy.transform.builder.Builder
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import ru.progrm_jarvis.catobot.CatOBot
import ru.progrm_jarvis.catobot.ai.RecognitionResult
import ru.progrm_jarvis.catobot.image.CatImage
@JarvisCraft
JarvisCraft / Base2Encoder.java
Last active July 14, 2019 16:45
Base2 encoder 4j
class Base2Encoder {
public static final int CHAR_SIZE = 16;
public static final char POSITIVE_SYMBOL = ')';
public static void main(String[] args) {
final String encoded = toBase2("Hello world!");
System.out.printf("Encoded: %s%n", encoded);
System.out.printf("Decoded: %s%n", fromBase2(encoded));