Skip to content

Instantly share code, notes, and snippets.

View ialidzhikov's full-sized avatar

Ismail Alidzhikov ialidzhikov

  • Sofia, Bulgaria
View GitHub Profile
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
for i in {1..5}
do
echo "Iteration $i"
@ialidzhikov
ialidzhikov / go.mod
Created December 2, 2021 15:05
Annotations issue
module github.com/ialidzhikov/test-annotations
go 1.17
require (
github.com/BurntSushi/toml v0.3.1 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver v1.5.0 // indirect
github.com/Masterminds/sprig v2.22.0+incompatible // indirect
github.com/beorn7/perks v1.0.1 // indirect
@ialidzhikov
ialidzhikov / images.yaml
Last active February 12, 2021 12:24
Imagevector scoring
images:
- name: cloud-controller-manager
sourceRepository: github.com/kubernetes/cloud-provider-openstack
repository: k8scloudprovider/openstack-cloud-controller-manager
tag: "v1.19.2"
targetVersion: "1.19.x"
package bg.sofia.uni.fmi.mjt.weather;
import java.lang.reflect.Type;
import java.net.URI;
import java.net.URLEncoder;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse.BodyHandlers;
import java.nio.charset.StandardCharsets;
public class Main {
public static void main(String[] args) throws Exception {
BankAccount bankAccount = new BankAccount(10);
Thread withdrawThread = new Thread(new Runnable() {
@Override
public void run() {
System.out.println("start of withdrawThread");
@ialidzhikov
ialidzhikov / ChatClient.java
Created January 12, 2019 09:36
chat-server draft
package bg.sofia.uni.fmi.mjt.chat;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
import java.util.Scanner;
public class ChatClient {
@ialidzhikov
ialidzhikov / CompareReaders.java
Created November 23, 2018 16:21
IO streams playground
package playground;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
public class CompareReaders {