This file contains hidden or 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
${lineNumber}G = Go to line ${lineNumber} |
This file contains hidden or 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
h = move cursor left | |
j = move cursor down | |
k = move cursor up | |
l = move curor right |
This file contains hidden or 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
package com.nikoskatsanos.examples; | |
import com.nikoskatsanos.nkjutils.yalf.YalfLogger; | |
import org.python.core.PyObject; | |
import org.python.core.PyObjectDerived; | |
import org.python.core.PyString; | |
import org.python.modules.cPickle; | |
import org.python.util.PythonInterpreter; | |
/** |
This file contains hidden or 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
from com.nikoskatsanos.examples import PersonIfc | |
class Person( PersonIfc ): | |
def __init__( self, name = "", age = 0, addresses = [], attributes = {} ): | |
self.pName = name | |
self.pAge = age | |
self.pAddresses = addresses | |
self.pAttributes = attributes |
This file contains hidden or 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
package com.nikoskatsanos.examples; | |
import java.io.Serializable; | |
import java.util.List; | |
import java.util.Map; | |
/** | |
* @author nikkatsa | |
*/ | |
public interface PersonIfc extends Serializable { |
This file contains hidden or 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
ccopy_reg | |
_reconstructor | |
p1 | |
(ccom.nikoskatsanos.person | |
Person | |
p2 | |
c__builtin__ | |
object | |
p3 | |
NtRp4 |
This file contains hidden or 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
class Person( object ): | |
def __init__( self, name = "", age = 0, addresses = [], attributes = {} ): | |
self.pName = name | |
self.pAge = age | |
self.pAddresses = addresses | |
self.pAttributes = attributes |
This file contains hidden or 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
<!-- https://mvnrepository.com/artifact/org.python/jython-standalone --> | |
<dependency> | |
<groupId>org.python</groupId> | |
<artifactId>jython-standalone</artifactId> | |
<version>2.7.0</version> | |
</dependency> |
This file contains hidden or 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
public class ProcessOrchestrator implements Runnable { | |
private static final YalfLogger log = YalfLogger.getLogger(ProcessOrchestrator.class); | |
private final Scanner input; | |
private boolean keepReading = true; | |
private final ExecutorService procsMonitor; | |
public ProcessOrchestrator() { |
This file contains hidden or 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
public static int getPid() { | |
return Integer.parseInt(ManagementFactory.getRuntimeMXBean().getName().split("@")[0]); | |
} |