Skip to content

Instantly share code, notes, and snippets.


FP in JS

Imperative VS Declarative

Imperative: tell the program how to do stuff, how the control flow goes and how the state changes. Declarative: tell the program what the logic is, describe the problem.

Declarative programs, specifically functional ones, raise the level of abstraction by using a minimally structured flow made up of independent blackbox operations that connect in a simple topology. These connected operations are nothing more than higher-order functions that move state from one operation to the next.

Example: quicksort algorithm

abidibo / gist:a5dae11a05c4ea22d526c00801f507d3
Created Jun 5, 2019
Material about memcached and kubernetes
View gist:a5dae11a05c4ea22d526c00801f507d3
abidibo /
Last active Apr 10, 2018 — forked from btroncone/
A Comprehensive Introduction to @ngrx/store - Companion to Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

abidibo /
Last active Mar 14, 2018
PyQt Stuff

PyQt5 Stuff


Install the following package

$ sudo apt-get install pyqt5-dev-tools

In my case it was also necessary to install this other package to use linguist command

abidibo / code-plugins.vim
Last active Oct 23, 2017
A vim configuration model
View code-plugins.vim
" Indentation
Plug 'Yggdroot/indentLine'
" folding
Plug 'Konfekt/FastFold'
" pairs
Plug 'jiangmiao/auto-pairs'
" commentary
abidibo /
Last active Oct 20, 2017
ROpe stuff for vim

Rope stuff

By default you can use <Ctrl-Space> for autocompletion

Autocompletion is also called by typing a period in |Insert| mode by default.

By default when you press <C-C>g on any object in your code you will be moved to definition.

Pymode can rename everything: classes, functions, modules, packages, methods, variables and keyword arguments.

abidibo / gist:dcbfb642cbda28c5227545bc8d7a3549
Created Oct 13, 2017
Install Vim 8 with Python, Python 3, Ruby and Lua support on Ubuntu 16.04
View gist:dcbfb642cbda28c5227545bc8d7a3549
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev
#Optional: so vim can be uninstalled again via `dpkg -r vim`
sudo apt-get install checkinstall
sudo rm -rf /usr/local/share/vim /usr/bin/vim
cd ~
View wg.html
<meta charset="utf-8" />
<script src=""></script>
<link href="" rel="stylesheet" type="text/css" />
<link href="|Oswald:400,700" rel="stylesheet" />
View tm-widget1.js
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;