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).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// findAllByAaa - find set of matching rows, empty set acceptable | |
Iterator found = Map.findAllByName("Jeffrey"); | |
// find - get row selected by parameters, return null if not found | |
Employee employee = employees.find("Jeffrey"); | |
// check - get row selected by parameters, throw exception if not found | |
Employee employee = employees.check("Jeffrey"); | |
// get - this pattern in this context I would avoid since it can be understood as something between find & check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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"))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Author: Piotr Likus, SpaceInSoft, 2015 | |
* License: MIT | |
*/ | |
package com.spaceinsoft.utils; | |
import java.math.BigDecimal; | |
import java.math.BigInteger; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Author: Piotr Likus, SpaceInSoft, 2015 | |
* License: MIT | |
*/ | |
package com.spaceinsoft.utils; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Author: Piotr Likus, SpaceInSoft, 2016 | |
* License: MIT | |
*/ | |
#include <stdio.h> | |
// prints unsigned int in binary form | |
void printBits(unsigned int num) | |
{ |
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
OlderNewer