Skip to content

Instantly share code, notes, and snippets.

View vrbala's full-sized avatar

Balamurugan V R vrbala

  • Nuremberg, Germany
View GitHub Profile
@vrbala
vrbala / CMakeLists.txt
Last active September 26, 2017 09:26
OpenCV sharpen an image
cmake_minimum_required(VERSION 2.8)
project( main )
find_package( OpenCV REQUIRED )
add_executable( main source.cpp )
target_link_libraries( main ${OpenCV_LIBS} )
@vrbala
vrbala / gist:52dab55c02f5413ae077e45b99d216e3
Created December 15, 2016 03:29 — forked from mikehaertl/gist:3258427
Learn you a Haskell - In a nutshell

Learn you a Haskell - In a nutshell

This is a summary of the "Learn You A Haskell" online book under http://learnyouahaskell.com/chapters.


1. Introduction

  • Haskell is a functional programming language.
@vrbala
vrbala / comprehensions.md
Created March 31, 2016 04:54 — forked from bearfrieze/comprehensions.md
Comprehensions in Python the Jedi way

Comprehensions in Python the Jedi way

Beautiful is better than ugly. Explicit is better than implicit.

-- The Zen of Python

I frequently deal with collections of things in the programs I write. Collections of droids, jedis, planets, lightsabers, starfighters, etc. When programming in Python, these collections of things are usually represented as lists, sets and dictionaries. Oftentimes, what I want to do with collections is to transform them in various ways. Comprehensions is a powerful syntax for doing just that. I use them extensively, and it's one of the things that keep me coming back to Python. Let me show you a few examples of the incredible usefulness of comprehensions.

All of the tasks presented in the examples can be accomplished with the extensive standard library available in Python. These solutions would arguably be more terse and efficient in some cases. I don't have anything against the standard library. To me there is a certain

@vrbala
vrbala / TestMultipartFileUpload.scala
Created February 3, 2016 15:57 — forked from jrudolph/TestMultipartFileUpload.scala
akka-http Multipart file-upload client + server example
package akka.http.scaladsl
import java.io.File
import akka.http.scaladsl.unmarshalling.Unmarshal
import akka.util.ByteString
import scala.concurrent.duration._
import akka.actor.ActorSystem