Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View nattomi's full-sized avatar

Tamás Nagy nattomi

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

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 December 19, 2016 17:24
poco c++ websocket client pushing data to autobahn python websocket server

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 April 12, 2012 13:08
simplyfied addPOIexec example
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib2
from xml.dom import minidom
values = {}
values["lat"] = 47.635
values["lon"] = 16.7