Skip to content

Instantly share code, notes, and snippets.

Avatar

Tamás Nagy nattomi

  • Freelance software developer
  • Sopron, Hungary
View GitHub Profile
@nattomi
nattomi / .gitignore
Last active Sep 26, 2021
FP snippets: Reducing 2 (or more) options into 1
@nattomi
nattomi / README.md
Last active Jul 3, 2021
Extending the dwm workspace switcher
View README.md

Extending the dwm workspace switcher

Windows managers for Linux usually provide a mean of switching between multiple workspaces. Dwm, a.k.a Dynamic Window Manager is not an exception either - the default configuration offers 9 workspaces to choose from.

default dwm workspace switcher

This may seem a lot, but in practice it's easy to exhaust. Configuring dwm is achieved by editing the configuration file config.h and recompiling the application. By default, the following tags are defined for the available workspaces:

/* tagging */
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
@nattomi
nattomi / README.md
Last active Dec 19, 2016
poco c++ websocket client pushing data to autobahn python websocket server
View README.md

Client: C++ (POCO)

Feeds data continuously to a websocket server. Relies on the POCO library.

Installing POCO
cd /tmp
wget http://pocoproject.org/releases/poco-1.6.0/poco-1.6.0.tar.gz
tar -xzvf poco-1.6.0.tar.gz
cd poco-1.6.0
./configure --no-tests --no-samples --prefix=/usr
make -s
@nattomi
nattomi / addPOIexec.py
Created Apr 12, 2012
simplyfied addPOIexec example
View addPOIexec.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib2
from xml.dom import minidom
values = {}
values["lat"] = 47.635
values["lon"] = 16.7