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
void train(cv::Mat &image) { | |
cv::cvtColor(image, image, CV_BGR2YCrCb); | |
const size_t w = image.cols; | |
const size_t h = image.rows; | |
double mean_cb = 0.0; | |
double mean_cr = 0.0; | |
double mean_cb2 = 0.0; | |
double mean_cr2 = 0.0; | |
double mean_crcb = 0.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
Глава первая | |
ДЕТСКИЙ ЯЗЫК | |
...Но всех чудес прекрасных на земле | |
Чудесней слово первое ребенка. | |
Петр Семынин | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Page Title</title> | |
<style> | |
body { | |
background-color: white; | |
text-align: center; | |
color: balck; | |
font-family: Arial, Helvetica, sans-serif; |
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
MAX_WITHDRAWER_EXITS = 2**4 | |
class WithdrawerExit(Container): | |
validator_index: ValidatorIndex | |
withdrawer_address: ExecutionAddress | |
class BeaconBlockBody(Container): | |
# ... |
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
contract WithdrawerExitBus is IBeaconChainMessageBus { | |
uint256 constant WITHDRAWER_EXIT_TYPE = 0x00; | |
struct WithdrawerExit { | |
address withdrawalAddress; // address corresponding to the 0x01 withdrawal creds | |
uint256 validatorIndex; // caller is responsible to get it from validator pubkey | |
} | |
function initiateValidatorExit(uint256 _validatorIndex) external { | |
// optionally require msg.value > some value and lock it on the contract |
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
// Sources flattened with hardhat v2.8.4 https://hardhat.org | |
// File @aragon/os/contracts/common/UnstructuredStorage.sol@v4.4.0 | |
/* | |
* SPDX-License-Identifier: MIT | |
*/ | |
pragma solidity ^0.4.24; |
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
contract Foo { | |
uint256 constant MAX_WITHDRAWAL_ATTEMPTS = 3; | |
mapping(address => uint256) private numWithdrawalAttempts; | |
function doWithdrawalRequest() public { | |
require(numWithdrawalAttempts[msg.sender] <= MAX_WITHDRAWAL_ATTEMPTS); | |
// ... |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" | |
content="text/html; charset=utf-8" /> |
OlderNewer