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
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; |
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\models\search; | |
use app\models\Access; | |
use Yii; | |
use yii\base\Model; | |
use yii\data\ActiveDataProvider; | |
use app\models\Calendar; |
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
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 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 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 ibanValidate(input) { | |
function mod97(string) { | |
var checksum = string.slice(0, 2), fragment; | |
for (var offset = 2; offset < string.length; offset += 7) { | |
fragment = String(checksum) + string.substring(offset, offset + 7); | |
checksum = parseInt(fragment, 10) % 97; | |
} | |
return checksum; | |
} |
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
//implement missing "Parallel" please | |
//try to do so with a minimal amount of code | |
function Parallel (options) { | |
var parallelJob = options.parallelJob || 1; | |
var jobs = []; | |
var result = []; | |
function runJobs() { | |
return new Promise(function(resolve) { |
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
const itemsToTable = items => { | |
return items.reduce((prevItem, currentItem) => { | |
const cursor = prevItem.length > 0 ? prevItem.length - 1 : 0 | |
if (!Array.isArray(prevItem[cursor])) { | |
prevItem[cursor] = [] | |
} | |
const currentColumn = cursor >= 0 ? prevItem[cursor] : [] | |
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
const MockData = require('./MockData') | |
const formatColumns = (data, columnLength = 6) => { | |
const pushItem = ({ boardMatrix = [], columnCursor = 0, rowCursor = 0, currentItem }) => { | |
const currentArrayItem = boardMatrix[columnCursor] | |
if (!currentArrayItem) { | |
boardMatrix[columnCursor] = [currentItem] | |
} else { | |
boardMatrix[columnCursor][rowCursor] = currentItem | |
} |
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
/* | |
Write a function | |
function solution(A); | |
that, given an array A consisting of N integers, returns the number of distinct values in array A. | |
Assume that: | |
N is an integer within the range [0..100,000]; |
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
{"version":1,"resource":"file:///media/Data/Projects/pytorch-tutorial/udemy/analys.py","entries":[{"id":"Owdk.py","timestamp":1665577929873},{"id":"NKvF.py","timestamp":1665577953119},{"id":"jCjq.py","timestamp":1665577976723},{"id":"Dmrq.py","timestamp":1665578052538},{"id":"1zqY.py","timestamp":1665578075067},{"id":"qzA0.py","timestamp":1665578086865},{"id":"cMRX.py","timestamp":1665578117117},{"id":"2VE2.py","timestamp":1665578131814},{"id":"FALi.py","timestamp":1665578164632},{"id":"1xAk.py","timestamp":1665578794209},{"id":"karU.py","timestamp":1665584521411}]} |
OlderNewer