Skip to content

Instantly share code, notes, and snippets.

View maobushi's full-sized avatar
🎯
Focusing

maobushi maobushi

🎯
Focusing
View GitHub Profile
  • https://review.foundx.jp/entry/how-to-talk-to-users 
    • にある顧客へのユーザリサーチの質問(5つ)を表現を変えてでも入力させ, その内容に応じて優先的にinviteを送る旨を書く
        1. あなたが解決しようとしていることに関する、一番の難題は何ですか?
        1. その問題に最後に直面した時のことを教えてください
        1. それが困難だった理由は何ですか?
        1. その問題を解決しようと思って、したことがあれば教えてください
        1. これまで試したソリューションのなかで、気に入らなかった点は何ですか?
    • 自社のプロダクトを売り込む場ではない
tap "oven-sh/bun"
tap "supabase/tap"
tap "teamookla/speedtest"
brew "act"
brew "cairo"
brew "cocoapods"
brew "codex"
brew "fastlane"
brew "pango"
brew "ffmpeg"
tap "oven-sh/bun"
tap "supabase/tap"
tap "teamookla/speedtest"
brew "act"
brew "cairo"
brew "cocoapods"
brew "codex"
brew "fastlane"
brew "pango"
brew "ffmpeg"
@maobushi
maobushi / CTHelpers.sol
Created December 20, 2024 16:41 — forked from cag/CTHelpers.sol
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.6.6+commit.6c089d02.js&optimize=false&gist=
pragma solidity ^0.6.0;
import { IERC20 } from "github.com/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
library CTHelpers {
/// @dev Constructs a condition ID from an oracle, a question ID, and the outcome slot count for the question.
/// @param oracle The account assigned to report the result for the prepared condition.
/// @param questionId An identifier for the question to be answered by the oracle.
/// @param outcomeSlotCount The number of outcome slots which should be used for this condition. Must not exceed 256.
function getConditionId(address oracle, bytes32 questionId, uint outcomeSlotCount) internal pure returns (bytes32) {