Skip to content

Instantly share code, notes, and snippets.

View vakho10's full-sized avatar

Vakho vakho10

  • Georgia/Tbilisi
View GitHub Profile
@vakho10
vakho10 / Pair.java
Created January 17, 2021 09:56
Java Pair implementation
public class Pair<F extends Comparable<F>, S extends Comparable<S>> implements Comparable<Pair<F, S>>{
private F first;
private S second;
public Pair() {
}
public Pair(F first, S second) {
this.first = first;
this.second = second;
pipeline {
agent none
stages {
stage('Fluffy Build') {
parallel {
stage('Build Java 7') {
agent {
node {
label 'java7'
}
@vakho10
vakho10 / imovies_video_widener.js
Created December 25, 2020 12:29
Creates a button to widen and shorten the video container on IMovies.cc
// ==UserScript==
// @name imovies_video_widener
// @namespace Violentmonkey Scripts
// @match https://www.imovies.cc/ka/movies/**
// @grant none
// @version 1.0
// @author Vakho10
// @description Creates a button to widen and shorten the video container on IMovies.cc
// ==/UserScript==
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}
#include <iostream>
#include <random>
#include <algorithm>
#include <numeric>
#include <chrono>
#include <thread>
#include <fstream>
#include <filesystem>
void _accumulate(double* first, double* last, double& response) {
#include <iostream>
#include <string>
#include <sstream>
#include <iomanip>
#include <regex>
#include <exception>
bool areSameUsingFixedScientificComparison(double x, double y)
{
/*
@vakho10
vakho10 / Array_Parallel_Sum.cpp
Created August 25, 2019 12:00
Demonstrates parallel sum of array elements.
#include <iostream>
#include <chrono>
#include <numeric>
#include <random>
#include <thread>
#include <future>
#include <exception>
double* randomArray(size_t size, int from, int to) {
std::random_device rd;
@vakho10
vakho10 / Main.java
Last active January 1, 2023 03:58
Excel generation example using JasperReports engine in Java
package ge.vakho.test_jasper_excel;
import java.io.ByteArrayOutputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import com.github.javafaker.Faker;
@vakho10
vakho10 / Cat.cpp
Created October 13, 2018 17:02
Basic Logger class in C++
#include "Cat.h"
Cat::Cat(std::string name)
{
m_name = name;
m_sound = "Meow!";
}
std::string Cat::sound()
{
@vakho10
vakho10 / Employee.java
Created October 13, 2018 16:56
Java code example about enums and inner classes
package ge.tsu.lab4;
public class Employee {
String fullName;
int age;
double salary;
Gender gender;
Job job;