title | author | link | |
---|---|---|---|
1 | The Captive Mind | Czesław Miłosz | Amazon |
2 | Private Truths, Public Lies: The Social Consequences of Preference Falsification | Timur Kuran | Amazon |
3 | When Reason Goes on Holiday: Philosophers in Politics | Neven Sesardić | Amazon |
4 | Intellectuals and Society | Thomas Sowell | Amazon |
5 | Intellectuals: From Marx and Tolsoy to Sartre and Chomsky | Paul Johnson | Amazon |
6 | The Making of an American Thinking Class: Intellectuals and Intelligentsia in Puritan Massachusetts | Darren Staloff | [Amazon](ht |
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
// ============================================================================= | |
// XNU kperf/kpc demo | |
// Available for 64-bit Intel/Apple Silicon, macOS/iOS, with root privileges | |
// | |
// | |
// Demo 1 (profile a function in current thread): | |
// 1. Open directory '/usr/share/kpep/', find your CPU PMC database. | |
// M1 (Pro/Max/Ultra): /usr/share/kpep/a14.plist | |
// M2 (Pro/Max): /usr/share/kpep/a15.plist | |
// M3: /usr/share/kpep/as1.plist |
Twitter thread: https://twitter.com/theshawwn/status/1456925974919004165
Hacker News thread: https://news.ycombinator.com/item?id=29128998
November 6, 2021
jnp.device_put(1)
is deceptively simple to write in JAX. But on a TPU, what actually happens? How does a tensor containing the value 1
actually get onto a TPU?
Turns out, the answer is "C++", and a lot of it.
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
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.4; | |
import "@chainlink/contracts/src/v0.8/ChainlinkClient.sol"; | |
/** | |
* **** Data Conversions **** | |
* | |
* countryCode (bytes2) | |
* -------------------- |
Moved into a GitHub repository: cheatsheet.sol🔗
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
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity ^0.8.0; | |
import "hardhat/console.sol"; | |
contract WavePortal { | |
uint256 totalWaves; | |
constructor() { |
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
// ReedemableNFT, where a curator can issue a redeemable cheque for minting a given token. | |
// | |
// The message to be signed is an EIP-712 compatible structured data: | |
// struct RedeemableNFT { | |
// address recipient; | |
// uint256 tokenId; | |
// } | |
// | |
// This message can then signed by the curator and given to the user who submits it. | |
// The validity of the signature is checked according to EIP-1271 if the signer is a 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
/** | |
*Submitted for verification at Etherscan.io on 2021-04-22 | |
*/ | |
// File: @openzeppelin/contracts/utils/Context.sol | |
// SPDX-License-Identifier: MIT | |
pragma solidity >=0.6.0 <0.8.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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
import "@openzeppelin/contracts/utils/Address.sol"; | |
interface IFlashLoanPool { | |
function flashLoan(uint256 amount) external; | |
function deposit() external payable; | |
function withdraw() external; |
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
pragma solidity >=0.4.22 <0.7.0; | |
contract AttendanceRegister { | |
struct Student{ | |
string name; | |
uint class; | |
} | |
event Added(string name, uint class, uint time); | |
mapping(uint => Student) public register; // roll number => student details |
NewerOlder