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 alphabeta(node, depth, alpha, beta, isMax, g) { | |
g.nodes[node.name].shape.items['0'].attr('fill', 'green'); | |
if((depth == 0) || (node.isTerminal == true)) { | |
return node.value; | |
} | |
if(isMax) { | |
console.log('maximizing'); | |
for (var i in node.children) { | |
var child = node.children[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
function alphabeta(node, depth, alpha, beta, isMax, g) { | |
g.nodes[node.name].shape.items['0'].attr('fill', 'green'); | |
if((depth == 0) || (node.isTerminal == true)) { | |
return node.value; | |
} | |
if(isMax) { | |
console.log('maximizing'); | |
for (var i in node.children) { | |
var child = node.children[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
function alphabeta(node, depth, alpha, beta, isMax, g) { | |
g.nodes[node.name].shape.items['0'].attr('fill', 'green'); | |
if((depth == 0) || (node.isTerminal == true)) { | |
return node.value; | |
} | |
if(isMax) { | |
console.log('maximizing'); | |
for (var i in node.children) { | |
var child = node.children[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
function alphabeta(node, depth, alpha, beta, isMax, g) { | |
g.nodes[node.name].shape.items['0'].attr('fill', 'green'); | |
if((depth == 0) || (node.isTerminal == true)) { | |
console.log('getting value from terminal node '+node.name+' (value is '+node.value+')'); | |
return node.value; | |
} | |
if(isMax) { | |
console.log('maximizing ('+node.name+')'); |
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
<? | |
$breadcrumbs->add(new Breadcrumb("/clients/orders", "Заказы")); | |
$subaction = isset($_GET['subaction']) ? $_GET['subaction'] : null; | |
switch($subaction): | |
default: | |
$MAIN_OUTPUT .= "<h3>Стандартная страница раздела Клиенты -> Заказы</h3>"; | |
break; | |
case "add": | |
$breadcrumbs->add(new Breadcrumb("/client/orders/add", "Добавление")); |
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
SELECT | |
c.id, | |
s.name as supplierName, | |
s.id as supplierId, | |
c.conclusionDate, | |
ADDDATE(c.conclusionDate INTERVAL c.period YEAR) as cancelDate, | |
c.period | |
FROM | |
Contracts as c | |
INNER JOIN |
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
<!DOCTYPE html> | |
<html > | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<meta content='width=1024' name='viewport'> | |
<title>Новый топик / Хабрахабр</title> | |
<meta name='yandex-verification' content='67d46b975fa41645' /> <!-- яндекс вебмастер - верификация --> |
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
Test md | |
--- |
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
var testSize = 10000; | |
prepare(); | |
runTest(); | |
function prepare () { | |
window.arr = []; | |
for (var i = 0; i < 1000; i++) window.arr[i] = 0; | |
} |
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
<html> | |
<head> | |
<title>Test</title> | |
</head> | |
<body> | |
Test iterator | |
<script> | |
const gen = function* () { |
OlderNewer