Skip to content

Instantly share code, notes, and snippets.

View fpdevil's full-sized avatar

Sampath fpdevil

  • United Airlines Inc.
  • Chicago
View GitHub Profile
@fpdevil
fpdevil / palindrome.erl
Created March 6, 2017 18:59
Check if a string or sentence is a palindrome.
%%%-----------------------------------------------------------------------------
%%% @author Sampath Singamsetty <>
%%% @copyright (C) 2017, Sampath Singamsetty
%%% @doc Check if a string or sentence is a palindrome.
%%% Define a function palindrome, that returns true or false depending on
%%% whether the list is a palindrome - the same when read right to left
%%% as when read left to right.
%%% @end
%%% Created : 06 Mar 2017 by Sampath Singamsetty <>
%%%-----------------------------------------------------------------------------
@fpdevil
fpdevil / nub.erl
Created March 6, 2017 02:41
nub function for removing duplicate elements
%%%-----------------------------------------------------------------------------
%%% @author Sampath Singamsetty <>
%%% @copyright (C) 2017, Sampath Singamsetty
%%% @doc
%%%
%%% @end
%%% Created : 05 Mar 2017 by Sampath Singamsetty <>
%%%-----------------------------------------------------------------------------
-module(nub).
-include_lib("eunit/include/eunit.hrl").
%%%-----------------------------------------------------------------------------
%%% @author Sampath Singamsetty <>
%%% @copyright (C) 2017, Sampath Singamsetty
%%% @doc Week2 exercises
%%% https://www.futurelearn.com/courses/functional-programming-erlang/1/steps/155134
%%% @end
%%% Created : 04 Mar 2017 by Sampath Singamsetty <>
%%%-----------------------------------------------------------------------------
-module(week2).
-include_lib("eunit/include/eunit.hrl").
%%%-----------------------------------------------------------------------------
%%% @author Sampath Singamsetty <>
%%% @copyright (C) 2017, Sampath Singamsetty
%%% @doc Week1 exercises
%%% www.futurelearn.com/courses/functional-programming-erlang
%%% @end
%%% Created : 23 Feb 2017 by Sampath Singamsetty <>
%%%-----------------------------------------------------------------------------
-module(week1).
-export([fib/1, pieces/1]).
@fpdevil
fpdevil / opencv_build_instructions.md
Last active June 2, 2016 05:25
Mac OS X OpenCV3 + Python 3.X

OpenCV3 with Python3.5 on Mac OS X Yosemite

Installation of the dependencies

  • First install the python3 using homebrew
$ uname -a
Darwin apple 15.5.0 Darwin Kernel Version 15.5.0: Tue Apr 19 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64

$ brew install python3
%%%-------------------------------------------------------------------
%%% @author Fernando Benavides <fernando.benavides@inakanetworks.com>
%%% @copyright (C) 2011 Inaka Networks S.R.L.
%%% @doc It listens and just repeats...
%%% @end
%%%-------------------------------------------------------------------
-module(gen_event_repeater).
-author('Fernando Benavides <fernando.benavides@inakanetworks.com>').
-behaviour(gen_event).