In default setup, Linux Mint installs gedit in version 2.x. In order to use more recent version of this editor (for example for Markdown support), you can follow the instruction below.
Linux Mint 17.3
package passgen; | |
import java.util.Random; | |
import java.util.Scanner; | |
/** | |
* Exercise 37 from "Exercises for programmers". | |
* @author Piotr Likus | |
*/ | |
public class PassGen { |
In default setup, Linux Mint installs gedit in version 2.x. In order to use more recent version of this editor (for example for Markdown support), you can follow the instruction below.
Linux Mint 17.3
/* | |
* Author: Piotr Likus, SpaceInSoft, 2016 | |
* License: MIT | |
*/ | |
#include <stdio.h> | |
// prints unsigned int in binary form | |
void printBits(unsigned int num) | |
{ |
Currently there is no automatic way to install Gnome Commander on CentOS 6. Below you will find instructions how to do that using install from compiled sources. Note that this is not a clean install and some things can be missing - it is always best to use automatic install (if available).
/* | |
* Author: Piotr Likus, SpaceInSoft, 2015 | |
* License: MIT | |
*/ | |
package com.spaceinsoft.utils; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; |
/* | |
* Author: Piotr Likus, SpaceInSoft, 2015 | |
* License: MIT | |
*/ | |
package com.spaceinsoft.utils; | |
import java.math.BigDecimal; | |
import java.math.BigInteger; | |
/** |
/* | |
* Author: Piotr Likus, SpaceInSoft, 2015 | |
* License: MIT | |
*/ | |
package com.spaceinsoft.utils; | |
/** | |
* Implements generic pair class that can hold pair of any objects. | |
* Class is immutable, so setting values is done by creation of new object. | |
* |
#include "xnode_property_list.h" | |
#include "xnode.h" | |
xnode_named_list cache; | |
// already existing entries will automatically destroyed and replaced | |
cache.put("MAMA", xnode.value_of("mama")); | |
cache.put("PAPA", xnode().hold(new Person("PAPA"))); | |
cache.put("TRUMP", xnode().hold(new USPresident("TRUMP"))); |
// C++11 singleton with lazy initialization & construction arguments | |
// Requires arguments to be initialized before usage (otherwise default values will be passed) | |
using namespace std; | |
// singleton with lazy initialization & construction arguments | |
template <typename Derived, typename Args> | |
class SingletonWithArgs | |
{ | |
public: |
// Basic singleton implementation | |
// Requires construction to be called before usage | |
// (so no lazy initialization) | |
// --- singleton.h | |
class Singleton { | |
public: | |
Singleton(); | |
virtual ~Singleton(); | |
static Singleton *getInstance() { |