Skip to content

Instantly share code, notes, and snippets.

View ArturTan's full-sized avatar

Artur Tanona ArturTan

  • Programming since August 2016 - continously improving my skills
  • Wrocław
View GitHub Profile
@ArturTan
ArturTan / morfeusz_execnet.py
Created November 2, 2018 17:02
morfeusz_execnet
import execnet
def token_converter(text):
gw = execnet.makegateway("popen//python=python2.7")
channel = gw.remote_exec(
"""import morfeusz2 as morf
import gc
def converter(text):
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ArturTan
ArturTan / valid.cpp
Last active April 13, 2018 13:33
validCommand() - przykładowa implementacja
bool Saper::validCommand(const std::string& command)
{
//Sprawdź czy input ma maksymalnie 3 znaki (worst case: A7^)
if (command.size() > 3)
{
std::cout << "Wrong format of field\n";
return false;
}