QbyYOq ('-' * 6)
Forked from Captain Anonymous's Pen BNjMmp.
body { margin: 0; padding: 0; zoom: 1; } | |
h1, h2, p { margin: 0; padding: 0; } | |
.strike { text-decoration: line-through; } | |
.avatar img { width: 30px; height: 30px; -webkit-border-radius: 15px; -moz-border-radius: 15px; border-radius: 15px; } | |
.caption { margin: 0 0 60px 20px; } | |
.caption a { font: 14px/16px 'Unica One', Helvetica, Arial, sans-serif; letter-spacing: .1em; color: #999; text-transform: uppercase; text-decoration: none; } | |
.caption a:hover { background-color: #ddd; } |
public class FizzBuzz { | |
public static void main(String[] args) { | |
for (int i = 0; i < 100; i++) { | |
if (i % 3 == 0) { | |
System.out.println("fizz"); | |
} else if (i % 5 == 0) { | |
System.out.println("buzz"); | |
} else if ((i % 3 == 0) && (i % 5 == 0)) { |
// First, checks if it isn't implemented yet. | |
// from http://stackoverflow.com/questions/610406/javascript-equivalent-to-printf-string-format | |
if (!String.prototype.format) { | |
String.prototype.format = function() { | |
var args = arguments; | |
return this.replace(/{(\d+)}/g, function(match, number) { | |
return typeof args[number] != 'undefined' | |
? args[number] | |
: match | |
; |
class Node | |
def initialize(data) | |
@left = nil | |
@right = nil | |
@data = data | |
end | |
def setLeft(leftChild) | |
@left = leftChild |
<div id="first"> | |
This is a first div | |
</div> |
inputfile = open(filename) | |
#... | |
# I swear enumerate() makes this faster. | |
for i, line in enumerate(inputfile): | |
if readnext == True: # Previous line started with an '@' | |
# linescounted += 1 # For line count check. | |
for bp in line.rstrip(): | |
if bp == 'G': |
0xc4d410134bb9e5cd73079604cda6faeafe0e64c0 |
sudo docker run -d --entrypoint /parity/parity -p 8545:8545 -p 8080:8080 -p 8180:8180 -v "/opt/blockchain/parity-kovan:/root/.local" "ethcore/parity:master" --chain=kovan --no-warp --jsonrpc-interface all --jsonrpc-hosts all --jsonrpc-cors "*" --jsonrpc-apis web3,eth,net,parity,parity_accounts,traces,rpc,parity_set,personal --ui-interface all
sudo docker run -d --entrypoint /parity/parity -p 8545:8545 -p 8080:8080 -p 8180:8180 -v "/opt/blockchain/parity-kovan:/root/.local" "ethcore/parity:master" --chain=kovan --no-warp --jsonrpc-interface all --jsonrpc-hosts all --jsonrpc-cors "*" --jsonrpc-apis "web3,eth,net,parity,parity_accounts,traces,rpc,parity_set,personal" --ui-interface all ui
0xe800ba1d8da6345ba16f512681c75e736f77f9bd |