This file contains 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
> personal.newAccount() | |
Passphrase: | |
Repeat passphrase: | |
"0xa88614166227d83c93f4c50be37150b9500d51fc" |
This file contains 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
var clientID = "oC8AfNfY3JTOV5PIFkqKbIgLgzFqc0By"; | |
var domain = "bitcorps.auth0.com"; | |
var full = location.protocol+'//'+location.hostname+(location.port ? ':'+location.port: ''); | |
var dict = { | |
title: "BitCorps", | |
} | |
var options = { | |
"responseType":"token", |
This file contains 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
public class Fireball extends GameObject implements Updatable { | |
private static final int VELOCITY = 5; | |
@NetworkData | |
private Vector2D pos; | |
@NetworkData | |
private final Vector2D speed; | |
@NetworkData |
This file contains 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
/** | |
* Creates the delta that would take this state to the newer state | |
*/ | |
public GameStateDelta getDeltaTo(GameState newer) { | |
GameStateDelta delta = new GameStateDelta(); | |
Set<GameObject> dissapeared = Sets.difference(this.getGameObjects(), newer.getGameObjects()); | |
Set<GameObject> appeared = Sets.difference(newer.getGameObjects(), this.getGameObjects()); | |
Set<Long> continued = Sets.intersection(this.getGameObjectIds(), newer.getGameObjectIds()); |
This file contains 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
OP_IF | |
<expiry time> OP_CHECKLOCKTIMEVERIFY OP_DROP | |
<consumer pubkey> OP_CHECKSIG | |
OP_ELSE | |
OP_0 2 <consumer pubkey> <provider pubkey> 2 OP_CHECKMULTISIG | |
OP_END |
This file contains 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
OP_DUP | |
OP_HASH160 | |
<hash(publicKey)> | |
OP_EQUALVERIFY OP_CHECKSIG |
This file contains 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
OP_0 | |
OP_<M> | |
<pubkey1> <pubkey2> ... <pubkeyN> | |
OP_<N> | |
OP_CHECKMULTISIG |
This file contains 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
sudo npm install -g peerflix | |
peerflix "magnet:?xt=urn:btih:ef330b39f4801d25b4245212e75a38634bfc856e" | |
TERM=xterm-256color DISPLAY= mplayer -vo caca -quiet http://10.0.0.128:8888/ |
This file contains 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
OP_IF | |
<service provided conditions> | |
<provider pubkey> | |
ELSE | |
<expiry time> OP_CHECKLOCKTIMEVERIFY OP_DROP | |
<client pubkey> | |
OP_ENDIF | |
OP_CHECKSIGVERIFY |
This file contains 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
OP_IF | |
OP_HASH256 <challenge hash> OP_EQUALVERIFY | |
<provider pubkey> | |
ELSE | |
<expiry time> OP_CHECKLOCKTIMEVERIFY OP_DROP | |
<client pubkey> | |
OP_ENDIF | |
OP_CHECKSIGVERIFY |