Category: Coding

  • Array-like objects in JavaScript

    Do you know what the difference between following two snippets are? Why are we in first case calling map function on array but than at second we call map it as prototype.map.call method which exists on function object (almost everything in JavaScript is an object). var numbers = [1,2,3,4] var multipliedBy3 = numbers.map(function(number) { return…

  • Road so far with me learning Go and what’s next

    Road so far with me learning Go and what’s next

    Last week I started to learn Go (Golang) programming language, made by Google. For a first learning resource about the language I picked An introduction to programming in Go, which turned out to be a great starting point in learning this language. As soon as I finished with familiarizing with its basic concepts (types, variables,…

  • Metalsmith – static site generator

    Past weekend I spent playing with Metalsmith, which is an extremely simple, pluggable static site generator, written in JavaScript. This means package’s only responsibility is copying files from source to destination folder and in a process applying pluggable transformations to those files via external plugins (if you’ve ever used Gulp, this will look familiar to…

  • PHP’s strtotime

    Over the last week PHP’s strtotime impressed me over and over again since I probably abused it. It is a universal converter of English string representation of date/time/timestamp (whatever time related) to UNIX timestamp. And I am not talking just about converting string like 1.9.1989 or 1/9/1989 but also something like 1 week ago, +1…

  • Making GIFs with python and MoviePy

    From this day on my favorite method of making GIFs out of video file has become via python with MoviePy module. Description of module from module’s page reads: MoviePy is a Python module for video editing, which can be used for basic operations (like cuts, concatenations, title insertions), video compositing (a.k.a. non-linear editing), video processing,…