Skip to content

Instantly share code, notes, and snippets.

View AppLoidx's full-sized avatar
♥️
everything else is irrelevant

Arthur A. Kupriyanov AppLoidx

♥️
everything else is irrelevant
View GitHub Profile
@AppLoidx
AppLoidx / main.css
Created March 18, 2024 05:55
shiki-theme
body{
font-family:"Lucida Sans Unicode","Lucida Grande",sans-serif;
background:url(https://raw.githubusercontent.com/GeliosMK2/Shikimori-GMK2/master/img/GMK2-bg.jpg) 0 0/cover fixed
}
.l-page{
background-color:rgba(255,255,255,.8);
box-shadow:0 0 9px 3px rgba(0,0,0,.25)
}
.l-top_menu-v2 .global-search input{
background-color:#f0fffc
@AppLoidx
AppLoidx / GoogleDistanceMatrix.java
Created October 14, 2020 22:23
Calculate distance to target city
package com.apploidxxx.google;
import com.apploidxxx.Parser;
import com.google.maps.DistanceMatrixApi;
import com.google.maps.DistanceMatrixApiRequest;
import com.google.maps.GeoApiContext;
import com.google.maps.model.*;
import java.util.Set;
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
{
"invalids": [
{
"login": "apploid",
"given_name": "Arthur",
"surname": "Kupriyanov",
"email": "apploidyakutsk@gmail.com",
"password": "123123123c",
"observers": [
{
  • 4 лаба (+1 лаба зачетная от 12 до 20 баллов за последнюю)

    • Теория
    • Выполнение
    • Своевременная сдача

    5 за теорию 5 за выполнение (макс, мин 3\3) - 1 лаба, остальные хз

@AppLoidx
AppLoidx / Bcrypt.java
Created February 17, 2020 16:53
BCrypt implementation
package com.lifefeel.api.util.password;
import java.io.UnsupportedEncodingException;
import java.security.SecureRandom;
/**
* @author Damien Miller
* @author Arthur Kupriyanov on 17.02.2020
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --disable-gpu --user-data-dir=~/chromeTemp
@AppLoidx
AppLoidx / ImageHash.java
Created February 6, 2020 19:57
Image hashing example
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
/**
* @author Arthur Kupriyanov on 06.02.2020
<!DOCTYPE html>
<html>
<head>
<title>Solution</title>
<style type="text/css">
.old-message {
background-color: grey;
}
.new-message {
background-color: green;
<!DOCTYPE html>
<html>
<head>
<title>Task</title>
<style type="text/css">
.old-message {
background-color: grey;
}
.new-message {
background-color: green;