Skip to content

Instantly share code, notes, and snippets.

@katorie
katorie / SampleERC721.sol
Created February 20, 2023 23:49
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=
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.0 <0.9.0;
import "@openzeppelin/contracts/token/ERC721/extension/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract SampleERC721 is ERC721URIStorage, Ownable {
// ERC721URIStorage, Ownable というinterfaceを継承している(多重継承?
// ERC721URIStorage -> tokenURI を備えたNFTの基本機能を提供してくれるコントラクト
@katorie
katorie / Greeter.sol
Created February 20, 2023 23:48
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=
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.7;
contract Greeter {
string name;
function setName(string calldata _name) public {
// calltada -> Datalocation 変数がどのように保存されるかを指定する修飾子
// strage: ブロックチェーン上に永続化される
// calldata: 関数のスコープ内でのみ生存し、変更不可
@katorie
katorie / message_from_capybara.txt
Last active August 29, 2015 14:00
Railsチュートリアル 3章で `bundle install --without production` で出てきたメッセージ
Post-install message from capybara:
IMPORTANT! Some of the defaults have changed in Capybara 2.1. If you're experiencing failures,
please revert to the old behaviour by setting:
Capybara.configure do |config|
config.match = :one
config.exact_options = true
config.ignore_hidden_elements = true
config.visible_text_only = true
end
@katorie
katorie / recipe_of_curry.html
Last active August 29, 2015 13:58 — forked from machida/html_practice.html
fjordインターンの課題
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>カレーのレシピ</title>
</head>
<body>
<header>
@katorie
katorie / 見積控えデータ整理.vb
Created February 7, 2014 07:44
弥生販売から作成した見積控えデータを見やすいように整理する
Option Explicit
'見積控えのデータを整理する
'---必要のない列を削除
'---消費税の行を削除
'---数量、単価、金額の欄が「0」だったら文字色を白にする
Sub 見積控え整理()
@katorie
katorie / 予定表作成.vb
Created February 7, 2014 07:43
営業部の予定表を一か月分つくる
Option Explicit
'---------- 基本仕様 ----------
' シートを末尾にコピーする
' シート名を変える
' A2の日付を変える
' 31日までループする
Sub 予定表作成()
Dim firstDay As Date
@katorie
katorie / brew_doctor.txt
Created January 8, 2014 13:31
brew doctor
Warning: You have leftover files from an older version of Xcode.
You should delete them using:
/Developer/Library/uninstall-developer-folder
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
autoconf
@katorie
katorie / brew_update.txt
Last active January 2, 2016 14:28
brew update
Error: undefined method `to_sym' for nil:NilClass
Please report this bug:
https://github.com/mxcl/homebrew/wiki/troubleshooting
/usr/local/Library/Homebrew/cmd/update.rb:103:in `report'
/usr/local/Library/Homebrew/cmd/update.rb:101:in `each_line'
/usr/local/Library/Homebrew/cmd/update.rb:101:in `report'
/usr/local/Library/Homebrew/cmd/update.rb:23:in `update'
/usr/local/Library/brew.rb:95:in `send'
/usr/local/Library/brew.rb:95
@katorie
katorie / introduce.md
Last active December 30, 2015 00:19
自己紹介 #yochiyochirb

#katorieの自己紹介

こんにちは、katorieです。

医療機器メーカーで営業部サポートをしながら、Rubyを独学中です。 VBAも少し挑戦したりしています。  

また、趣味で煎茶道の教授をもっています。
伝統的なお茶会はもちろん、 洋服で、手ぶらで参加できるお茶会を企画したりしています。