##python vs ruby
###Выборка элементов из массива
ruby
arr[n..m]
// 3 -> 1 CC | |
//Найти последний символ | |
2q1->2q1R | |
1q1->1q1R | |
0q1->0q1R | |
Bq1->Bq2L // Нашли последний символ, встали на него и начинаем вычитание | |
//Вычесть 1 из троичного числа | |
2q2->1q3R // Прибавление 1 к единичному числу |
void CCorpus::loadWithMystem(const std::string& fname) | |
{ | |
std::system(("./mystem -e UTF-8 -n -l -i -w " + fname + " > " + fname + ".m").c_str()); | |
std::ifstream from_mystem((fname + ".m").c_str()); | |
std::string line; | |
std::string temp; | |
while (std::getline(from_mystem, line)) | |
{ |
# загружаем дефолтный профиль оболочки | |
source /etc/profile | |
# | |
# тут немного всякой хери, смысл которой я сам не особо понимаю | |
# | |
# Use hard limits, except for a smaller stack and no core dumps | |
unlimit | |
limit stack 8192 |
# You want latexmk to *always* run, because make does not have all the info. | |
# Also, include non-file targets in .PHONY so they are run regardless of any | |
# file of the given name existing. | |
FNAME = ref | |
.PHONY: $(FNAME).pdf all no_bible clean | |
# The first rule in a Makefile is the one executed by default ("make"). It |
##python vs ruby
###Выборка элементов из массива
ruby
arr[n..m]
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
PROJECT_NAME="$1" | |
SCALA_VERSION="2.11.8" | |
SCALATEST_VERSION="3.0.0" | |
mkdir $PROJECT_NAME | |
cd $PROJECT_NAME | |
cat > build.sbt << EOF |
# Common analizer interface | |
class TSemanticAnaliser | |
def analise_text(text) | |
# returns double | |
end | |
def learn(array_of_texts) |
Twitter bot for automated detection and re-twitting influential thematic posts. | |
=== | |
Assume that thematic = `programming` | |
##Stage 1 | |
* Prepare examples of programmer's twitter accounts and other ones for representativity | |
* Create graph of twitter accounts which seems to contain programmers thematic | |
* Starting from small amount of truly programmer's accounts collect all of it's followers and following accounts | |
* Add in queue post perspective ones based on |