Skip to content

Instantly share code, notes, and snippets.

Brett Sun sohkai

Block or report user

Report or block sohkai

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View instrumented_list.json
[
"./coverageEnv/app/node_modules/@aragon/apps-finance/contracts/Finance.sol",
"./coverageEnv/app/node_modules/@aragon/apps-finance/test/mocks/ExecutionTarget.sol",
"./coverageEnv/app/node_modules/@aragon/apps-finance/test/mocks/FinanceMock.sol",
"./coverageEnv/app/node_modules/@aragon/apps-finance/test/TestFinance.sol",
"./coverageEnv/app/node_modules/@aragon/apps-vault/contracts/connectors/ERC20Connector.sol",
"./coverageEnv/app/node_modules/@aragon/apps-vault/contracts/connectors/ERC721Connector.sol",
"./coverageEnv/app/node_modules/@aragon/apps-vault/contracts/connectors/ERC777Connector.sol",
"./coverageEnv/app/node_modules/@aragon/apps-vault/contracts/connectors/ETHConnector.sol",
"./coverageEnv/app/node_modules/@aragon/apps-vault/contracts/connectors/standards/ERC721.sol",
View create-survey-dao.md

Creating a new Survey DAO on mainnet (by hand)

First: you must have a pre-existing Minime token already deployed to mainnet.

Creating a DAO

To create a DAO with the Survey app installed, you can send a transaction to our Survey DAO factory (0xb5ba20a4e9167b640311a0c10d773bb143db5e39), calling newInstance().

If you look at the tx we used to create our (Aragon) DAO: https://etherscan.io/tx/0xcff32cd339f3ea7d41f31577d57a0dd3bc4db228e3f9b7ebc4bcdba28503fb1f, you can take the input data and change a few areas:

  • Replace 960b236a07cf122663c4303350609a66a7b288c0 (ANT token) with your-minime-token-address
View survey-kit.json
[
{
"constant": true,
"inputs": [],
"name": "APM_NODE",
"outputs": [
{
"name": "",
"type": "bytes32"
}
View stylus_github.css
body,
.markdown-body,
.tooltipped::after {
font-family: Helvetica, arial, nimbussansl, liberationsans, freesans, clean, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol' !important;
}
body {
font-size: 13px !important;
line-height: 1.4 !important;
}
View Aragon <> Zeppelin Package Management.md

Aragon <> Zeppelin Package Management

  • Aragon Package Manager
    • Constraints on Repos?
      • Currently only one contract address and one content URI available per version in a Repo
        • Changing the contract address is more dangerous than a content URI change, so it's only possible to change it via major versions (checked on chain)
    • Number of deployed repos?
      • 10 < x < 100
    • Does aragonOS use the package manager?
      • Not directly on chain; our upgradability architecture is based on the organization installing their preferred versions vs. relying on the package manager
@sohkai
sohkai / workshop-1.md
Last active Jul 18, 2018
Dapp UX Workshop #1
View workshop-1.md

Dapp UX Workshop #1

  • Goals:
    • Investigate aragon-ui and whether the Giveth Dapp could use it in the future
      • The Dapp will be redesigned soon, would be great to collaborate on the redesign
  • aragon-ui
    • Meant to be fully generic UI toolkit, hopefully widely adopted even outside of the blockchain space
      • There will be some ethereum-specific UI components (e.g. addresses, components for optimistic transaction UIs) so the community doesn't have to keep solving the same problems
      • General design strategies and guidelines for both blockchain and non-blockchain specific use cases
@sohkai
sohkai / keybase.md
Created Aug 9, 2016
Keybase identity
View keybase.md

Keybase proof

I hereby claim:

  • I am sohkai on github.
  • I am sohkai (https://keybase.io/sohkai) on keybase.
  • I have a public key whose fingerprint is AA21 0DD3 65CF 1176 1168 D83D 274F EB9E 9F9A 9A14

To claim this, I am signing this object:

@sohkai
sohkai / cvim.rc
Last active May 11, 2016
cVim.rc
View cvim.rc
" Scroll settings
unmap e s w " Unmap extra scroll bindings
map ^ scrollToLeft
" Misc settings
unmap r zr gR cr " Unmap reload bindings
unmap ge gd " Unmap downloads and extension pages
" Tab settings
unmap gt K R gT J E " Just use <C-h> and <C-l> to navigate tabs
@sohkai
sohkai / gist:5c8f862b4496b41dc681
Last active Oct 2, 2017
Javascript URL Regex
View gist:5c8f862b4496b41dc681
\b(https?:\/\/)?((?:www\.)?((?:[^\s.,;()\/]+\.)+[^\s$_!*()$&.,;=?+\/\#]+)((?:\/|\?|\/\?)[^\s#^`{}<>?"\[\]\/\|]+)*\/?(#[^\s#%^`{}<>?"\[\]\/\|]*)?)
/**
* Should be used with /i flag as well as the /g flag if looking for multiple matches
*
* Notes:
* Ignores schemes other than http(s).
* Captures emails as otherwise it would match the `gmail.com` in `hi@gmail.com`,
* producing (what I think is) more surprising behaviour than the alternative.
*
You can’t perform that action at this time.