Skip to content

Instantly share code, notes, and snippets.

View AChep's full-sized avatar
:octocat:

Artem Chepurnyi AChep

:octocat:
View GitHub Profile
@AChep
AChep / kp_ru_help_with_cache.py
Last active March 16, 2022 10:39
Helps kp.ru/yandex cloud image generation service to cache images
from bs4 import BeautifulSoup
import re
import threading
import requests
import random
import string
import time
headers = {
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.80 Safari/537.36',

Privacy Policy

Artem Chepurnyi built the Keyguard app as a Commercial app. This SERVICE is provided by Artem Chepurnyi and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which are accessible at Keyguard unless otherwise defined in this Privacy Policy.

@AChep
AChep / kodein_viewModel.kt
Created December 6, 2019 13:56
Helper methods to retrieve an instance of ViewModel via Kodein.
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.ViewModelStoreOwner
import org.kodein.di.*
import org.kodein.di.generic.bind
import org.kodein.di.generic.factory
import org.kodein.di.generic.instance
import org.kodein.di.generic.provider
class ViewModelFactory(private val injector: LazyKodein) : ViewModelProvider.Factory {
@AChep
AChep / string_calculator_kata.py
Created February 12, 2019 20:13
This is a String Calculator
import re
def add(text):
"""
String Calculator
http://osherove.com/tdd-kata-1/
"""
if not text:
return 0
@AChep
AChep / ConfigBase.kt
Last active June 7, 2018 08:10
Base class for a simple config
import android.content.Context
import android.content.SharedPreferences
import android.os.Looper
import kotlin.properties.ObservableProperty
import kotlin.reflect.KProperty
/**
* @author Artem Chepurnoy
*/
abstract class ConfigBase {
package com.artemchep.webviewscroll
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.webkit.JavascriptInterface
import android.webkit.WebView
import android.webkit.WebViewClient
import kotlinx.android.synthetic.main.activity_main.*
true
Your privacy is important to us.
We have developed this privacy policy in order for you to understand how we collect, use, communicate, disclose and otherwise make use of personal information.
We have outlined our privacy policy below.
We will never sell your information or share it with third parties for marketing purposes.
We will make readily available to customers information about our policies and practices relating to the management of personal information.
@AChep
AChep / fa1fly_test.kt
Last active January 5, 2018 13:37
Copy paste code to Filename.kt and compile (Kotlin required). Supported keys: TAB to select or switch between figures, ARROWS to move them.
import java.awt.Color
import java.awt.Graphics
import java.awt.Graphics2D
import java.awt.RenderingHints
import java.awt.event.*
import javax.swing.SwingUtilities
import javax.swing.JFrame
import javax.swing.JPanel
fun main(args: Array<String>) {
Your privacy is important to us.
We have developed this privacy policy in order for you to understand how we collect,
use, communicate, disclose and otherwise make use of personal information.
We have outlined our privacy policy below.
• AcDisplay does not collect or store personal information. Access to information is required
in order to display it.