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
int encode(std::string* t, std::wstring s) | |
{ | |
std::wcout.imbue(std::locale("russian_russia.866")); | |
std::wcout << L"ENCODE: строка до:\t\t" << s << std::endl; | |
size_t i_len = s.length(); | |
std::stringstream ss; | |
std::wcout << L"ENCODE: Длина строки:\t\t" << i_len << std::endl; |
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
#!/usr/bin/python3 | |
import sys, os, json | |
class AppFolderMgr: | |
dconf_prefix = 'gsettings set org.gnome.desktop.app-folders.folder:/org/gnome/desktop/app-folders/folders/' | |
def __init__(self): | |
self.folder_tree = { | |
"Utilities": ['catfish.desktop', |
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
;; sudo apt-get install sqlite3 | |
;; download dict.db from: | |
;; https://www.dropbox.com/sh/u3r3q66x03vqxxy/AAACXdrMy2yxVrwwn1gahQXqa?dl=0 | |
;; put dict.db to ~/.emacs.d/data/dict.db | |
(defun my-simple-dictionary () | |
(interactive) | |
(defvar sqlite-program | |
(or (executable-find "sqlite3") | |
(executable-find "sqlite") |