Skip to content

Instantly share code, notes, and snippets.

View NikolayGenov's full-sized avatar

Nikolay Genov NikolayGenov

  • Y-TREE
View GitHub Profile

Keybase proof

I hereby claim:

  • I am nikolaygenov on github.
  • I am nikolaygenov (https://keybase.io/nikolaygenov) on keybase.
  • I have a public key ASBwjMAzXow0xNeugl_qRxDGyA8a1RP2O-hQiYfEkNxyUAo

To claim this, I am signing this object:

first(X,[X|T]).
%one_before_last(X,A) - A is one before last of of X
one_before_last([A,_],A).
one_before_last([_|X], A):- one_before_last(X,A).
%elem(A,X) A is an element of X
elem(A,[A|_]).
elem(B,[_|X]):-elem(B,X).
%concat(X,Y,Z): Z is concatenation of X and Y
@NikolayGenov
NikolayGenov / homework3_test.go
Created November 29, 2016 00:28
Tests for Homework 3
package main
import (
"fmt"
"testing"
"time"
)
type adder struct {
augend int
#include <stdio.h>
#include <unistd.h>
#include <linux/kd.h>
#include <sys/ioctl.h>
#include <stdlib.h>
#include <fcntl.h>
#include <linux/input.h>
#include <math.h>
#define MOUSEFILE "/dev/input/mice"