Skip to content

Instantly share code, notes, and snippets.

View pasevin's full-sized avatar
💭
I may be slow to respond.

Aleksandr Pasevin pasevin

💭
I may be slow to respond.
View GitHub Profile
This file has been truncated, but you can view the full file.
{
"id": "b5afe1d4f024079d687bf9184b1ad401",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.4",
"solcLongVersion": "0.8.4+commit.c7e474f2",
"input": {
"language": "Solidity",
"sources": {
"contracts/Greeter.sol": {
"content": "//SPDX-License-Identifier: Unlicense\npragma solidity ^0.8.0;\n\nimport \"hardhat/console.sol\";\n\ncontract Greeter {\n address myLibraryAddress;\n string public greeting;\n bool public testBool;\n uint256 public testUint;\n uint8 public testUint8;\n struct TestStruct {\n uint256 testUint;\n uint8 testUint8;\n }\n TestStruct public testStruct;\n // nested\n struct TestStruct2 {\n TestStruct testStruct;\n uint256 testUint;\n }\n TestStruct2 public testStruct2;\n\n constructor(\n address _myLibraryAddress,\n string memory _greeting,\n bool _testBool,\n uint256 _testUint,\n uint8 _testUint8,\n TestStruct memory _testStruct,\n TestStruct2 memory _testStruct2\n ) payable {\n console.log(\"Deploying a Gre
This file has been truncated, but you can view the full file.
{
"id": "569487d9d330123e48bbd19f3a1946a8",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.4",
"solcLongVersion": "0.8.4+commit.c7e474f2",
"input": {
"language": "Solidity",
"sources": {
"contracts/Greeter.sol": {
"content": "//SPDX-License-Identifier: Unlicense\npragma solidity ^0.8.0;\n\nimport \"hardhat/console.sol\";\n\nlibrary MyLibrary {\n function myFunction() external pure returns (uint256) {\n return 42;\n }\n}\n\ncontract Greeter {\n address myLibraryAddress;\n string private greeting;\n bool private testBool;\n uint256 private testUint;\n uint8 private testUint8;\n\n constructor(\n address _myLibraryAddress,\n string memory _greeting,\n bool _testBool,\n uint256 _testUint,\n uint8 _testUint8\n ) {\n console.log(\"Deploying a Greeter with greeting:\", _greeting);\n myLibraryAddress = address(_myLibraryAddress);\n greeting = _greeting;\n testBool = _testBool;\n testUint = _testUint;\n testUint8 = _testUint8;\n }\n\n
This file has been truncated, but you can view the full file.
{
"id": "9cdf73635a0f34b720701727efde623a",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.4",
"solcLongVersion": "0.8.4+commit.c7e474f2",
"input": {
"language": "Solidity",
"sources": {
"contracts/Greeter.sol": {
"content": "//SPDX-License-Identifier: Unlicense\npragma solidity ^0.8.0;\n\nimport \"hardhat/console.sol\";\n\ncontract Greeter {\n address myLibraryAddress;\n string private greeting;\n bool private testBool;\n uint256 private testUint;\n uint8 private testUint8;\n\n constructor(\n address _myLibraryAddress,\n string memory _greeting,\n bool _testBool,\n uint256 _testUint,\n uint8 _testUint8\n ) {\n console.log(\"Deploying a Greeter with greeting:\", _greeting);\n myLibraryAddress = address(_myLibraryAddress);\n greeting = _greeting;\n testBool = _testBool;\n testUint = _testUint;\n testUint8 = _testUint8;\n }\n\n function greet() public view returns (string memory) {\n return greeting;\n }\n\n function setGreeti
This file has been truncated, but you can view the full file.
{
"id": "9e159e6992ade13b60ca3a72777f7879",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.4",
"solcLongVersion": "0.8.4+commit.c7e474f2",
"input": {
"language": "Solidity",
"sources": {
"contracts/Greeter.sol": {
"content": "//SPDX-License-Identifier: Unlicense\npragma solidity ^0.8.0;\n\nimport \"hardhat/console.sol\";\n\ncontract Greeter {\n string private greeting;\n\n constructor(string memory _greeting) {\n console.log(\"Deploying a Greeter with greeting:\", _greeting);\n greeting = _greeting;\n }\n\n function greet() public view returns (string memory) {\n return greeting;\n }\n\n function setGreeting(string memory _greeting) public {\n console.log(\"Changing greeting from '%s' to '%s'\", greeting, _greeting);\n greeting = _greeting;\n }\n}\n"
@pasevin
pasevin / clean.sh
Last active November 24, 2019 12:40 — forked from Iman/clean.sh
Free up disk space on Ubuntu - clean log, cache, archive packages/apt archives, orphaned packages, old kernel and remove the trash
#!/bin/sh
#Check the Drive Space Used by Cached Files
du -sh /var/cache/apt/archives
#Clean all the log file
#for logs in `find /var/log -type f`; do > $logs; done
logs=`sudo find /var/log -type f`
for i in $logs
@pasevin
pasevin / gist:3879901
Created October 12, 2012 15:51
Media Queries for Standard Devices | CSS - Tricks
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {