Skip to content

Instantly share code, notes, and snippets.

Vladislav Tetraquark

Block or report user

Report or block Tetraquark

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View CallbackToSuspend.kt
import ru.tetraquark.kexperiments.callbacktosuspend.SomeJavaApi
import kotlinx.coroutines.*
import kotlin.Exception
import kotlin.coroutines.Continuation
import kotlin.coroutines.resume
import kotlin.coroutines.resumeWithException
import kotlin.coroutines.suspendCoroutine
fun main() = runBlocking {
import org.jetbrains.annotations.NotNull;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class SomeJavaApi {
private static final String SUCCESS_RESULT = "SUCCESSFUL_CALL";
private static final long WORK_DELAY = 1000L;
Tetraquark /
Last active Mar 16, 2019
Example of simple discord chatbot based on library
# Example of simple discord chatbot based on library
# For article (Russian language):
import discord
import asyncio
import requests
Tetraquark /
Last active Apr 5, 2019
Simple example of using FastICA algorithm
# Testing of FastICA algorithm from sklearn library.
# Author: tetraquark |
# Article URL (RUS language):
import numpy as np
import matplotlib.pyplot as plt
from sklearn.decomposition import FastICA
# Length of the sources signals
You can’t perform that action at this time.