This file contains hidden or 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
function cusipValidate(cusip) { | |
cusip = cusip.toUpperCase(); | |
if (!/^[0-9A-Z@#*]{9}$/.test(cusip)) { | |
return false; | |
} | |
var sum = 0, | |
cusipChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ*@#".split(''); |
This file contains hidden or 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
function isinValidate(isin) { | |
isin = isin.toUpperCase(); | |
if (!/^[0-9A-Z]{12}$/.test(isin)) { | |
return false; | |
} | |
if (isin.length != 12) return false; | |
var v = []; | |
for (var i = isin.length - 2; i >= 0; i--) { |
This file contains hidden or 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\models\search; | |
use app\models\Access; | |
use Yii; | |
use yii\base\Model; | |
use yii\data\ActiveDataProvider; | |
use app\models\Calendar; |
This file contains hidden or 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
server { | |
listen 80; | |
server_name phpmyadmin.ru; | |
access_log /var/log/nginx/phpmyadmin.local.access.log; | |
error_log /var/log/nginx/phpmyadmin.local.error.log; | |
root /usr/share/phpmyadmin; |
NewerOlder