Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

PROgrm_JARvis JarvisCraft

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

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 Nov 24, 2018
MapUtil for Java
View MapUtil.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 Mar 28, 2019
Project April <Annotation Remote Procedure Call API>
View Standard.md

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 Mar 28, 2019
Project April <Annotation Remote Procedure Call API>
View Standard.md

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 Mar 28, 2019
Project April <Annotation Remote Procedure Call API>
View Standard.md

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 Mar 28, 2019
Project April <Annotation Remote Procedure Call API>
View Standard.md

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 Mar 28, 2019
Project April <Annotation Remote Procedure Call API>
View Standard.md

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 Mar 28, 2019
Project April <Annotation Remote Procedure Call API>
View Standard.md

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
CatOBot handler scripts
View vk_handler.groovy
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
View Base2Encoder.java
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));