Skip to content

Instantly share code, notes, and snippets.

View Antosser's full-sized avatar

Anton Aparin Antosser

View GitHub Profile
@Antosser
Antosser / layout.vil
Created January 7, 2024 18:24
My optimal Piantor Vial Layout
{
"version": 1,
"uid": 1113869408211332572,
"layout":
[
[
[
"KC_TAB",
"KC_Q",
"KC_W",
@Antosser
Antosser / decrypt.php
Created August 12, 2023 11:04
GJP decryption
<?php
$gjp = "your_encoded_gjp_here";
$gjpdecode = str_replace("_", "/", $gjp);
$gjpdecode = str_replace("-", "+", $gjpdecode);
$gjpdecode = base64_decode($gjpdecode);
class XORCipher {
public static function cipher($plaintext, $key) {
@Antosser
Antosser / sine.py
Created November 27, 2022 13:44
Plotpy simple sine wave
import plotly as pl
from math import *
from numpy import *
trace = {
"x": [],
"y": []
}
for i in arange(0, 10, .1):
1>C:\Users\Anton\source\repos\connect-4-ai\connect-4-ai\board.cpp(103): message : see reference to class template instantiation 'std::array<std::tuple<int,int>,10>' being compiled
1>C:\Users\Anton\source\repos\connect-4-ai\connect-4-ai\board.cpp(103,133): error C2440: 'initializing': cannot convert from 'initializer list' to 'int'
1>C:\Users\Anton\source\repos\connect-4-ai\connect-4-ai\board.cpp(103,54): message : The initializer contains too many elements
1>C:\Users\Anton\source\repos\connect-4-ai\connect-4-ai\board.cpp(103,62): error C2078: too many initializers
[
Does any opertion with any two numbers
Examples:
134+55=
78-47=
13*14=
64/8=
45%3=
6^3=
Always remember to put an equal sign on the end