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 / 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;
@serhii-shnurenko
serhii-shnurenko / ExpressionNode.java
Created November 20, 2015 11:17
Simple arithmetic expression parser, can do 4 basic arithmetic actions +-*/
package com.company;
/**
* Created by Сергій Шнуренко on 18.11.2015.
*/
public class ExpressionNode {
private ExpressionNode arg1;
private ExpressionNode arg2;
private String value;