Skip to content

Instantly share code, notes, and snippets.

View AlekseiCherkes's full-sized avatar

Aliaksei Charkes AlekseiCherkes

View GitHub Profile
#
# Closure
#
def foo():
x = 123
y = [1, 2, 3]
z = [1, 2, 3]
def c1():
//
// Общие заметки:
// * все возвращаемые сырые указатели нужно освобождать самим (т.е оборачивать их в умные)
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//
// Querying
//
//////////////////////////////////////////////////////////////////////
ZSH_THEME="robbyrussell"
plugins=(git adb colorize dircycle pip svn vagrant sudo dircycle dirhistory)
@AlekseiCherkes
AlekseiCherkes / mime.local.conf
Created March 27, 2015 06:35
All possible mime types for dokuwiki
ez application/andrew-inset
aw application/applixware
atom application/atom+xml
atomcat application/atomcat+xml
atomsvc application/atomsvc+xml
ccxml application/ccxml+xml
cdmia application/cdmi-capability
cdmic application/cdmi-container
cdmid application/cdmi-domain
cdmio application/cdmi-object
@AlekseiCherkes
AlekseiCherkes / Dockerfile-sphinx
Created March 19, 2015 05:37
CMU Sphinx docker working environment
FROM ubuntu:14.04
MAINTAINER Aleksei Cherkes <aleksei.cherkes@gmail.com>
# Notes:
# 1. Recommended command to run:
# 2. Default install prefix for all modules is: /usr/local/
RUN \
apt-get update && \
apt-get install -y build-essential && \
### In Ubuntu this file is enabled in .bashrc
## Alias definitions.
## You may want to put all your additions into a separate file like
## ~/.bash_aliases, instead of adding them here directly.
## See /usr/share/doc/bash-doc/examples in the bash-doc package.
# if [ -f ~/.bash_aliases ]; then
# . ~/.bash_aliases
# fi
@AlekseiCherkes
AlekseiCherkes / cpp_time_bomb
Last active January 20, 2022 17:37
C++ time bomb
#include <ctime>
#include <iostream>
#include <string>
#include <sstream>
//-----------------------------------------------------------------------------
// Notes:
// 1) You should make full project rebuild during customer build
// 2) Keep error handling simple: just print message to cout and call exit(-1)
// 3) You can customize the number of days in evaluation period:
@AlekseiCherkes
AlekseiCherkes / cyrrilic.tex
Last active December 21, 2015 15:58
Cyrrilic symbols in LaTeX
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[russian]{babel}
\title{Моя статья (My Article)}
\author{Алексей Черкес (Aleksei Cherkes)}
\begin{document}
\maketitle
Hello world!!!
Привет мир!!!
\end{document}
@AlekseiCherkes
AlekseiCherkes / python_files.py
Last active January 31, 2018 20:33
Python file management tools.
#############################################################################################
# Usefull file and directory managment functions
#############################################################################################
#
# os.sep -- path separator
#
# -------------------------------------------------------------------------------------------
#
# os.path.isabs(path)
# os.path.isfile(path)