Skip to content

Instantly share code, notes, and snippets.

View hydai's full-sized avatar
🐈

hydai hydai

🐈
View GitHub Profile

Keybase proof

I hereby claim:

  • I am hydai on github.
  • I am hydai (https://keybase.io/hydai) on keybase.
  • I have a public key ASB7cErMzncIMobd1jae7MsGtSPQ8fjiJJZix1ng2rgvwAo

To claim this, I am signing this object:

@hydai
hydai / Calc.sol
Created September 17, 2020 17:04
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.8.0;
contract Calc {
int private result;
function add(int a, int b) public returns (int c) {
result = a + b;
c = result;
}
./solc/solc --ir ~/workspace/soll/test/solidity/stringCompare.sol
Unimplemented feature:
/solidity/libsolidity/codegen/YulUtilFunctions.cpp(1077): Throw in function solidity::frontend::YulUtilFunctions::updateStorageValueFunction(const solidity::frontend::Type&, const std::optional<unsigned int>&)::<lambda()>
Dynamic exception type: boost::exception_detail::clone_impl<solidity::langutil::UnimplementedFeatureError>
std::exception::what:
[solidity::util::tag_comment*] =
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define BUF_LEN 1024*16
int main(int argc, char* argv[]) {
FILE *pFile=NULL;
char* buf=NULL;
char name[128];
pragma solidity ^0.4.25;
import "./SafeMath.sol";
import "./IERC20.sol";
contract ERC20 is IERC20 {
using SafeMath for uint256;
string public constant name = "haha token";
uint8 public constant decimals = 18;
@hydai
hydai / ladder.md
Created February 22, 2018 14:52 — forked from jamtur01/ladder.md
Kickstarter Engineering Ladder
# udev rule to detect android devices
# These rules refer to http://developer.android.com/tools/device.html
# Acer
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666", GROUP="plugdev"
# Archos
SUBSYSTEM=="usb", ATTR{idVendor}=="0e79", MODE="0666", GROUP="plugdev"
# Asus
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666", GROUP="plugdev"
# Azpen Onda
#include <iostream>
namespace A {
int x = 1;
}
namespace B {
int x = 2;
}
using namespace A;
#include <iostream>
namespace A {
int x = 1;
}
namespace B {
int x = 2;
}
int main() {
@hydai
hydai / 12.cpp
Last active February 28, 2016 09:26
#include <iostream>
int main() {
int a, b;
// 你的程式碼會被放在這裡喔!
std::cout << a << " " << b << std::endl;
return 0;
}