Skip to content

Instantly share code, notes, and snippets.

View serhii-shnurenko's full-sized avatar
:shipit:
going to do it...

Serhii Shnurenko serhii-shnurenko

:shipit:
going to do it...
View GitHub Profile
@serhii-shnurenko
serhii-shnurenko / keybase.md
Created January 31, 2019 20:45
keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@serhii-shnurenko
serhii-shnurenko / main.cpp
Created August 10, 2016 13:17
Fibonachi number recursive and loop implementation, tests and benchmarking
//
// Created by Сергій Шнуренко on 10.08.2016.
//
#include <iostream>
#include "testlib.h"
#include "numbers.h"
using namespace std;
// benchmark tests constants
@serhii-shnurenko
serhii-shnurenko / Playground.java
Last active August 1, 2016 21:58
IMDB extractor sample
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
/**
* Created by Сергій Шнуренко on 01.08.2016.
*/
package graph;
import org.junit.Before;
import org.junit.Test;
import java.io.File;
import java.io.IOException;
import java.util.List;
import static org.junit.Assert.*;
@serhii-shnurenko
serhii-shnurenko / main.c
Last active November 25, 2018 12:45
Number converter
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: main.c
* Author: Сергій Шнуренко
*
@serhii-shnurenko
serhii-shnurenko / shiftcipher.c
Last active December 4, 2015 17:48
Some basic encryption algorithms
#include <stdio.h>
//STUDYING MATERIAL
//shift encryption is not secure
char* encrypt(int k, char* message){
char* temp=malloc(strlen(message)+1);
int i;
for(i=0;i<strlen(message);i++){
temp[i]=(message[i]+k+26-'a')%26+'a';
@serhii-shnurenko
serhii-shnurenko / Actioner.java
Created November 20, 2015 11:25
Short and simple command interpreter using Java programming language
package commandline.commands;
/**
* Created by Сергій Шнуренко on 11.11.2015.
*/
public class Actioner implements Command {
@Override
public void execute(Object[] args) {
//TODO: Implement code to get info based on args
@serhii-shnurenko
serhii-shnurenko / queue.c
Created November 20, 2015 11:24
This is how stack and queue works in C programming language
#include <stdio.h>
struct QueueNode{
char value;
struct QueueNode* next;
};
int main()
{
@serhii-shnurenko
serhii-shnurenko / another_pointer_example.c
Created November 20, 2015 11:24
Allocating in memory piece which later will be used as array using C programming language
//STUDYING MATERIAL
#include <stdio.h>
int main()
{
const int WIDTH=100;
const int HEIGHT=100;
int a[HEIGHT][WIDTH];
int i;
@serhii-shnurenko
serhii-shnurenko / ObjectsHolder.java
Created November 20, 2015 11:24
ObjectHolder to get out assoiciated with strings objects from tagged map
package commandline.commands;
import java.util.HashMap;
import java.util.Map;
/**
* Created by Сергій Шнуренко on 15.11.2015.
*/
public class ObjectsHolder {
private Map<String,Object> pairs;