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
#!/bin/bash | |
aspell --lang ru-yeyo dump master | aspell --lang ru expand | tr ' ' '\n' > russian.dic |
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
<?php | |
namespace app\helpers; | |
use Yii; | |
use yii\base\Exception; | |
/** | |
* | |
*/ |
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
<?php | |
namespace app\widgets; | |
use yii\base\Widget; | |
use yii\web\View; | |
/** | |
* Register JS script. |
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
<?php | |
namespace app\helpers; | |
use yii\base\InvalidCallException; | |
use yii\base\UnknownPropertyException; |
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
## Sample initialization file for GNU nano. | |
## | |
## Please note that you must have configured nano with --enable-nanorc | |
## for this file to be read! Also note that this file should not be in | |
## DOS or Mac format, and that characters specially interpreted by the | |
## shell should not be escaped here. | |
## | |
## To make sure a value is disabled, use "unset <option>". | |
## | |
## For the options that take parameters, the default value is given. |
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
/** | |
* Считает среднее арифметическое, | |
* позволяя добавлять знаения последовательно без знания их количества. | |
*/ | |
class IncrementalAvg | |
{ | |
private $n = 0; | |
private $mean = 0; | |
/** |
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
#!/sbin/runscript | |
NAME=solr | |
# customize path | |
SOLR_PATH=/opt/solr/example | |
COMMAND=java | |
OPTIONS="-Dsolr.solr.home=$SOLR_PATH/solr -Djetty.home=$SOLR_PATH -jar $SOLR_PATH/start.jar" | |
PIDFILE=/var/run/$NAME.pid | |