- Install Creation Kit (via Bethesda Launcher).
- File > Data > Skyrim.esm
- Character > Quests > right click anywhere on right > New
- Assign ID, Quest Name, check Start Game Enabled and Run Once
- Click OK
- Double click new quest in list.
- Scripts > Add > New Script
- Assign name, Extends Quest, Hidden, OK
- Right click script > Edit Source
- Paste source.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"constant":false,"inputs":[{"name":"recoveryDelayInDays","type":"uint8"}],"name":"createWallet","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"walletOwner","type":"address"}],"name":"getWalletFor","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"}],"name":"WalletCreated","type":"event"}] |
I hereby claim:
- I am micahzoltu on github.
- I am micahzoltu (https://keybase.io/micahzoltu) on keybase.
- I have a public key ASClorQtzJePn4dedMK71QZ6-ilRAz6_Tyb3RKb30sH7jQo
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace App | |
{ | |
class Program | |
{ | |
static void Main(String[] args) | |
{ | |
var program = new Program(); | |
Console.WriteLine(program.Greeting()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener('keydown', event => { | |
if (!event.shiftKey || !event.ctrlKey || event.key != '|') return | |
const container = document.querySelector('main > div:first-of-type > div:first-of-type > div:first-of-type > ol > li:last-of-type > div') | |
container.dispatchEvent(new MouseEvent('mousemove', { bubbles: true })); | |
container.querySelector('div[aria-label="Add Reaction"]').click() | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"xhrStatus": "complete", | |
"request": { | |
"method": "GET", | |
"url": "api/datasources/proxy/2/query", | |
"params": { | |
"db": "my_database", | |
"q": "SELECT last(\"number\") FROM \"my_measurement\" WHERE time >= now() - 30m GROUP BY time(1s) fill(previous)", | |
"epoch": "ms" | |
}, |
- User has
10 ETH
. - User wants
10 ETH
worth of an insured YES position. - User buys
10 complete sets
, giving them10 YES + 10 NO + 10 INVALID
. - User trades
10 NO
forx YES
on the open market. - User ends up with
10+x YES + 10 INVALID
.
- If the market resolves as YES, they get
10+x ETH
(net profit ==x
). - If the market resolves as NO, they get
0 ETH
(net loss ==VAR
). - If the market resolves as INVALID, they get
10 ETH
(net neutral).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity 0.6.4; | |
library RLP { | |
uint constant DATA_SHORT_START = 0x80; | |
uint constant DATA_LONG_START = 0xB8; | |
uint constant LIST_SHORT_START = 0xC0; | |
uint constant LIST_LONG_START = 0xF8; | |
uint constant DATA_LONG_OFFSET = 0xB7; | |
uint constant LIST_LONG_OFFSET = 0xF7; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract AugurConstantProduct { | |
IAugurMarket market = 0x0;// TODO | |
IErc20 dai = 0x0; // TODO | |
uint256 numTicks; | |
function addLiquidity(uint256 amountInAttodai) { | |
uint256 poolBalanceBefore = poolBalance(); | |
dai.transferFrom(msg.sender, this, amountInAttodai); | |
market.buyCompleteSets(amountInAttodai); |
The goal of this process is to create a DAO that the public can weakly trust, while protecting DAO participants from wrench attacks by someone looking to takeover the DAO.
- A secret is given out to
n
publicly trusted individuals. - The individual's with secrets are instructed to secretly nominate one person they trust to participate in the DAO.
- The nominated individuals all sign the secret and publish the signature plus the address they signed with publicly (and anonymously).
- Nominated individuals should accept multiple nominations if offered, and not tell anyone they were nominated multiple times.
- Nominated individuals are strongly encouraged to participate, but they should not inform their nominator if they fail to participate.
- After a pre-defined amount of time has passed, all valid signatures (verifiable by anyone who has seen the secret) are collected and the trusted individuals all assert that:
OlderNewer