Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.
Avoid being a link dump. Try to provide only valuable well tuned information.
Neural network links before starting with transformers.
// In https://solidity-by-example.org/sending-ether/ | |
// They say: call in combination with re-entrancy guard is the recommended method to use after December 2019. | |
// (see https://consensys.github.io/smart-contract-best-practices/recommendations/#dont-use-transfer-or-send for an explanation) | |
// and compare the gas fees of the 3 methods: | |
// transfer (2300 gas, throws error) | |
// send (2300 gas, returns bool) | |
// call (forward all gas or set gas, returns bool) | |
// I tested all 3 methods, by sending 10 eth to a contract and then withdrawing using these functions: |
Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.
NOTE: This logic can be extended to more than two accounts also. :)
The setup can be done in 5 easy steps:
/* | |
* MIT License | |
* | |
* Copyright (c) 2023-2024 Fabio Lima | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
'use strict'; | |
/*****************NATIVE forEACH*********************/ | |
Array.prototype.myEach = function(callback) { | |
for (var i = 0; i < this.length; i++) | |
callback(this[i], i, this); | |
}; | |
//tests |
A compile-time 4-Bit Virtual Machine implemented in TypeScript's type system. Capable of running a sample 'FizzBuzz' program.
Syntax emits zero JavaScript.
type RESULT = VM<
[
["push", N_1], // 1
["push", False], // 2
["peek", _], // 3
/** | |
* return HH:mm:ss format | |
* | |
* @param milliseconds time in milliseconds | |
* @return the string time format with HH:mm:ss | |
* @throws ParseException | |
*/ | |
private static String getTimeFormat(long milliseconds) throws ParseException { | |
long totalsec = milliseconds / 1000; | |
long hourPart = totalsec / 3600; |