Skip to content

Instantly share code, notes, and snippets.

Sampath fpdevil

  • United Airlines Inc.
  • Chicago
Block or report user

Report or block fpdevil

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fpdevil
fpdevil / palindrome.erl
Created Mar 6, 2017
Check if a string or sentence is a palindrome.
View palindrome.erl
%%%-----------------------------------------------------------------------------
%%% @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 Mar 6, 2017
nub function for removing duplicate elements
View nub.erl
%%%-----------------------------------------------------------------------------
%%% @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").
View week2.erl
%%%-----------------------------------------------------------------------------
%%% @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").
View week1.erl
%%%-----------------------------------------------------------------------------
%%% @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 Jun 2, 2016
Mac OS X OpenCV3 + Python 3.X
View opencv_build_instructions.md

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
View gen_event_repeater.erl
%%%-------------------------------------------------------------------
%%% @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).
You can’t perform that action at this time.