September 19, 2016 some postgresql snippets

making polygon from array of points: ST_MakePolygon(ST_MakeLine(sha));   if line is not closed: ST_MakePolygon(ST_AddPoint(ST_MakeLine(sha), ST_StartPoint(ST_MakeLine(sha))));   turning geom_dump setof into array: gs1 = array(SELECT geom…(Read More)

nodejs-new-pantone-black[1]
August 4, 2016 Issues downloader for Bitbucket

This is an example of how to create a simple downloader of websites, which are behind login mechanism and further download them – for example…(Read More)

es6
August 3, 2016 ES6 Proxy and catch-all method

As i talked about ecma2015/es6 with a few people, i’ve realized that many features are still a mystery in the community. One of them is Proxy…(Read More)

pie
April 17, 2016 Pie charts in canvas

This post will be about making pie charts and doughnut chart with html5 canvas and plain javascript/coffeescript. As there are lot of other possible solutions for…(Read More)

46d8d00e190be647053f7d97fd0478e4
January 26, 2016 task automation inside package.json with npm-scripts

Last week I found an interesting blog about replacing grunt/gulp with npm-scripts that inspired me to try this approach. And write a blog about this struggle….(Read More)

HERE.com routing API
December 28, 2015 Visualizing HERE routing API times using D3.js

In this post I’d like to show you how to visualize traffic situation on a route over various times in a week with HERE routing…(Read More)

November 18, 2015 Geocoding with python

There is a lot of services that provide geocoding or reverse geocoding. In this example I would like to show you an easy way how…(Read More)

canvas blackboard
September 1, 2015 Canvas blackboard simple implementation

After reading a few chapters of the Canvassing ebook, I started to think intensively about how to create a basic canvas blackboard and how simply it is.

pagination
August 29, 2015 Content searching on paginated websites

Even if it is not so common, there are websites, which won’t allow you to enter text and search by it. But you can utilize…(Read More)

the_neural_network_by_rajasegar-d2xx3w9[1]
August 29, 2015 Neural net-like canvas animation(2)

How to use html5 canvas to create animation that looks like neural net(part 2) I took a little harder way to start, since I first…(Read More)

the_neural_network_by_rajasegar-d2xx3w9[1]
August 24, 2015 Neural net-like canvas animation

How to use html5 canvas to create animation that looks like neural net A few months ago i saw some animation, which you could see…(Read More)

August 10, 2015 Synchronization of leaflet.js and google spreadsheet

In this short tutorial, I would like to show how to use google spreadsheet as a database for web GIS map.

August 10, 2015 git pull error – corrupted .git files

Sometimes when I want to pull a git repository, I get this error message:

August 4, 2015 Changing the position of an element in an array with javascript

For example, I want to move element ‘a’ in array [‘a’, ‘b’, ‘c’, ‘d’] two position after its actual position to have something like [‘b’, ‘c’,…(Read More)

asteroids p1 2
April 21, 2015 My first html5 canvas game part2

This is the second part of my tutorial on building basic html5 canvas game (the firts part is here). Last time, we built some easy…(Read More)

custom control button
February 20, 2015 Creating custom control button in leaflet

In this post, I would like to shortly describe how to easily create, style and use self-defined control button.   L.Control.extend We should start with…(Read More)

asteroids p1 2
February 19, 2015 My first html5 canvas game part1

In this post, I would like to present you my first attempt to code a javascript game based on canvas. As my experiences with this technology…(Read More)

February 19, 2015 number to characters function

This is a short snippet for converting number to characters in alphabet. For example, 3 should be D, 7 is H. It should be a…(Read More)

February 7, 2015 Draggable and Resizable without jqueryUI

I was searching for possibilities to build “windows-like” div’s without the need of importing jquery UI. I found out, there are still not a lot…(Read More)

November 7, 2014 Converting svg to png with canvg

Canvg is a js library that parses svg and creates canvas. However I found out, it is also a nice way (and the only I…(Read More)