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
const MIRROR_URL = "https://mainnet.mirrornode.hedera.com"; | |
const FIRST_DINO_BLOCK = 72961723; | |
const LAST_DINO_BLOCK = 72961776; | |
const DINO_TOKEN_ID = '0.0.7907968'; | |
let total_tokens_sold = BigInt(0); | |
let total_associations = 0; | |
let total_buys = 0; | |
let bought_amounts = []; |
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
{ | |
... | |
"originalDetectIntentRequest": { | |
... | |
"payload": { | |
... | |
"conversation": { | |
"conversationId": "...gZsMB8ajfLvsg", | |
"type": "NEW" | |
}, |
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
{ | |
... | |
"originalDetectIntentRequest": { | |
... | |
"payload": { | |
... | |
"conversation": { | |
"conversationId": "...5nmoRA2pY", | |
"type": "NEW" | |
}, |
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
static void ResolveClassFieldsAndMethods(const ParallelCompilationManager* manager, | |
size_t class_def_index) | |
LOCKS_EXCLUDED(Locks::mutator_lock_) { | |
ATRACE_CALL(); | |
Thread* self = Thread::Current(); | |
jobject jclass_loader = manager->GetClassLoader(); | |
const DexFile& dex_file = *manager->GetDexFile(); | |
ClassLinker* class_linker = manager->GetClassLinker(); | |
// If an instance field is final then we need to have a barrier on the return, static final |
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
# the optimization consists in the elimination of the 'Qsum' variable from the normal case and modifying | |
# 'Qavg' directly using a simple mathematica observation as Rich Sutton elegantly demonstrates | |
# in section 2.4 | |
function totalRewards = simulate_epsg_n_bandit(n, eps, gamecnt, rollcnt) | |
# make room for the estimated value - action [Q_t(a)] | |
totalRewards = zeros(1, rollcnt); | |
for k = 1:gamecnt | |
# generate the true value - action [q_*(a)] from a normal distribution of mean 0 and variance 1 |
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 totalRewards = simulate_epsg_n_bandit(n, eps, gamecnt, rollcnt) | |
# make room for the estimated value - action [Q_t(a)] | |
totalRewards = zeros(1, rollcnt); | |
for k = 1:gamecnt | |
# generate the true value - action [q_*(a)] from a normal distribution of mean 0 and variance 1 | |
q = randn(1, n); | |
# reset some game related, auxiliary variables | |
Qavg = zeros(1, n); |
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
addr : out std_logic_vector (SDR_ADDR_WIDTH - 1 downto 0); | |
data : in std_logic_vector (SDR_DATA_WIDTH - 1 downto 0); | |
... | |
addr(addr'length - 1 downto 0) <= data(addr'length - 1 downto 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
tri_st_data : process (mem_write_data, data, cur_memc_st) | |
begin | |
if (cur_memc_st = ctrl_wait_for_write) then | |
data <= mem_write_data; | |
else | |
data <= (others => 'Z'); | |
end if; | |
mem_read_data <= data; | |
end process tri_st_data; |
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
#include "FastPWM.h" | |
FastPWM::FastPWM(PinName pin) : PWMObject(pin){ | |
//Set clock source | |
LPC_SC->PCLKSEL0|=1<<12; | |
_duty=0; | |
_period=0.02; | |
if (pin==p26||pin==LED1) { | |
PWMUnit=1; |
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
/* | |
* Aplicatie test pentru Modulul de comunicatii AVR-PS/2 Mouse | |
* Copyright (c) 2013, Victor ADASCALITEI, [email protected] | |
* | |
* Eliberez aceste surse sub licenta CC de tip BY-NC-SA 3.0 . Pentru mai multe informatii, va invit sa accesati | |
* urmatoarea adresa : http://creativecommons.org/licenses/by-nc-sa/3.0/ro/ . | |
*/ | |
#include <avr/io.h> |
NewerOlder