Skip to content

Instantly share code, notes, and snippets.

View chungphuoc's full-sized avatar
🎯
Focusing

phil chungphuoc

🎯
Focusing
View GitHub Profile
@chungphuoc
chungphuoc / contracts...Crypto.sol
Created March 10, 2022 08:55
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "./Utils.sol";
contract Crypto is EIP712 {
constructor() EIP712("PLASTIK", "1.0") {}
/// @notice Verifies the signature for a given NFTVoucher, returning the address of the signer.
/// @dev Will revert if the signature is invalid. Does not verify that the signer is authorized to mint NFTs.
@chungphuoc
chungphuoc / Add rubocop linter to your sublime
Last active October 20, 2016 09:51
Guide to add rubocop linter to sublime for checking ruby code style
1. Install package control
- https://packagecontrol.io/installation
- https://packagecontrol.io/docs/usage
2. Install SublimeLinter and Sublime​Linter-rubocop
- https://packagecontrol.io/packages/SublimeLinter
- https://packagecontrol.io/packages/SublimeLinter-rubocop
3. Add sample .rubocop.yml file into project folder
- Get the sample rubocop file below.
**OTHERS Good package for sublime**
vi:
devise:
failure:
invited: "Bạn có một lời mời đang ở trạng thái chờ, hãy xác nhận nó để tạo tài khoản của bạn."
invitations:
send_instructions: "Một thư mời đã được gửi đến cho %{email}."
invitation_token_invalid: "Mã xác nhận không chính xác!"
updated: "Mật khẩu của bạn đã được thiết lập thành công. Bạn hiện đang đăng nhập."
updated_not_active: "Mật khẩu của bạn đã được thiết lập thành công."
no_invitations_remaining: "Không còn lời mời nào."